fix(ui): label the default credential grants as Default, not Root identity
This commit is contained in:
1 parent
cbba38cb3a
commit
dc1e89f018
2 files changed
+5
-5
No files matched your search
@@ -9,8 +9,8 @@ import { useOrgStore } from "@/stores/org";
|
||||
import { useSettingsStore } from "@/stores/settings";
|
||||
import DraftHint from "./DraftHint.vue";
|
||||
|
||||
/** The identity-grants document: the root identity's credential services,
|
||||
* and per identity a list that replaces the root's. */
|
||||
/** The identity-grants document: the default credential services,
|
||||
* and per identity a list that replaces the default. */
|
||||
interface IdentityGrants {
|
||||
root: string[] | null;
|
||||
identities?: Record<string, string[]>;
|
||||
@@ -49,8 +49,8 @@ function removeIdentity(id: string) {
|
||||
<p v-if="error" role="alert" class="mb-3 text-sm text-danger">{{ error }}</p>
|
||||
<div v-if="grants" class="divide-y divide-border rounded-lg border border-border bg-card">
|
||||
<div class="flex flex-wrap items-center gap-3 px-4 py-2.5">
|
||||
<span class="w-40 shrink-0 text-sm">Root identity</span>
|
||||
<ToggleGroup type="multiple" variant="outline" size="sm" :model-value="grants.root ?? []" aria-label="Root identity grants" @update:model-value="(v) => setRoot(v as string[])">
|
||||
<span class="w-40 shrink-0 text-sm">Default</span>
|
||||
<ToggleGroup type="multiple" variant="outline" size="sm" :model-value="grants.root ?? []" aria-label="Default grants" @update:model-value="(v) => setRoot(v as string[])">
|
||||
<ToggleGroupItem v-for="service in store.credentialServices" :key="service" :value="service" class="font-mono text-xs">{{ service }}</ToggleGroupItem>
|
||||
</ToggleGroup>
|
||||
<DraftHint :kind="KIND" path="root" />
|
||||
|
||||
Reference in new issue
Block a user