diff --git a/ui/src/lib/nav.ts b/ui/src/lib/nav.ts index b7d493c5e..77d34c63b 100644 --- a/ui/src/lib/nav.ts +++ b/ui/src/lib/nav.ts @@ -84,7 +84,7 @@ const settings: NavSpec = { "/settings/status", ], }, - { paths: ["/settings/authentication"] }, + { paths: ["/settings/organisations", "/settings/authentication"] }, ], }; diff --git a/ui/src/org/OrgShell.vue b/ui/src/org/OrgShell.vue index d1358c904..0366c5a23 100644 --- a/ui/src/org/OrgShell.vue +++ b/ui/src/org/OrgShell.vue @@ -4,22 +4,16 @@ import { storeToRefs } from "pinia"; import { computed, onMounted, ref, watch } from "vue"; import { useRoute, useRouter } from "vue-router"; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "@/components/ui/select"; -import NewOrgDialog from "./NewOrgDialog.vue"; +import { Button } from "@/components/ui/button"; import { useOrgStore } from "@/stores/org"; /** - * The Organisation area's frame: the org every section below is about, and the - * switcher an instance admin uses to point it elsewhere. + * The Organisation area's frame: the org every section below is about. The + * topbar switches the org you act in; an instance admin opens any other org + * from Instance > Organisations. */ const orgStore = useOrgStore(); -const { homeOrg, instanceAdmin, org, orgs } = storeToRefs(orgStore); +const { homeOrg, org } = storeToRefs(orgStore); const error = ref(""); // Policies and models act on the caller's own org server-side, so an instance @@ -43,20 +37,13 @@ onMounted(async () => {