Skip to content

Commit

Permalink
Use check icon to indicate default operation
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 8, 2023
1 parent a6222e6 commit d89d30b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions client/src/components/Grid/configs/adminQuotas.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { faDatabase, faEdit, faKey, faPlus, faTrash, faTrashRestore, faUsers } from "@fortawesome/free-solid-svg-icons";
import { faCog, faDatabase, faEdit, faPlus, faTrash, faTrashRestore, faUsers } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import axios from "axios";

Expand Down Expand Up @@ -72,19 +72,19 @@ const fields: FieldArray = [
},
},
{
title: "Manage Users and Groups",
icon: faUsers,
condition: (data: QuotaEntry) => !data.deleted && !data.default_type,
title: "Change Default",
icon: faCog,
condition: (data: QuotaEntry) => !data.deleted,
handler: (data: QuotaEntry) => {
emit(`/admin/form/manage_users_and_groups_for_quota?id=${data.id}`);
emit(`/admin/form/set_quota_default?id=${data.id}`);
},
},
{
title: "Set as Default",
icon: faKey,
condition: (data: QuotaEntry) => !data.deleted,
title: "Manage Users and Groups",
icon: faUsers,
condition: (data: QuotaEntry) => !data.deleted && !data.default_type,
handler: (data: QuotaEntry) => {
emit(`/admin/form/set_quota_default?id=${data.id}`);
emit(`/admin/form/manage_users_and_groups_for_quota?id=${data.id}`);
},
},
{
Expand Down

0 comments on commit d89d30b

Please sign in to comment.