Skip to content

Commit

Permalink
change some dashboard styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lyang2821 committed Nov 28, 2024
1 parent c1f767d commit 69f7b2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lapdev-dashboard/src/organization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,18 +261,18 @@ pub fn OrgSettings() -> impl IntoView {
<p class="text-gray-700">{"Manage your organization's settings"}</p>
</div>
<div class="mb-8">
<div class="w-full p-8 border rounded-xl">
<div class="w-full p-8 border rounded-xl shadow">
<UpdateNameView />
</div>
<div
class="mt-4 w-full p-8 border rounded-xl"
class="mt-8 w-full p-8 border rounded-xl shadow"
class:hidden=move || !cluster_info.with(|i| i.as_ref().map(|i| i.has_enterprise)).unwrap_or(false)
>
<AutoStartStopView />
</div>

<div
class="mt-4 w-full p-8 border rounded-xl"
class="mt-8 w-full p-8 border rounded-xl shadow"
class:hidden=move || !login.with(|l| { l.as_ref() .and_then(|l| l.as_ref().map(|l| l.organization.role == UserRole::Owner)) .unwrap_or(false) })
>
<h5 class="text-lg font-semibold">
Expand Down
6 changes: 5 additions & 1 deletion lapdev-ws/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,11 @@ impl WorkspaceServer {
.output()
.await?;

Command::new("userdel").arg(osuser).output().await?;
Command::new("userdel")
.arg("-f")
.arg(osuser)
.output()
.await?;

tokio::fs::remove_dir(&workspace_base_folder).await?;
tokio::fs::remove_dir_all(format!("/home/{osuser}")).await?;
Expand Down

0 comments on commit 69f7b2d

Please sign in to comment.