OAuth2 OpenID Connect provider support etc. #3
@@ -557,16 +557,24 @@ const pageHeading = computed(() => {
|
||||
// Breadcrumb entries for admin app.
|
||||
const breadcrumbEntries = computed(() => {
|
||||
const entries = [
|
||||
{ label: 'Auth', href: makeUiHref() },
|
||||
{ label: 'Admin', href: adminUiPath() }
|
||||
{ label: 'My Profile', href: makeUiHref() }
|
||||
]
|
||||
// For org admins, combine Admin and their org
|
||||
if (isOrgAdmin.value && !isMasterAdmin.value && orgs.value.length > 0) {
|
||||
const org = orgs.value[0]
|
||||
entries.push({ label: `Admin: ${org.display_name}`, href: `#org/${org.uuid}` })
|
||||
} else {
|
||||
entries.push({ label: 'Admin', href: adminUiPath() })
|
||||
}
|
||||
// Determine organization for user view if selectedOrg not explicitly chosen.
|
||||
let orgForUser = null
|
||||
if (selectedUser.value) {
|
||||
orgForUser = orgs.value.find(o => o.uuid === selectedUser.value.org) || null
|
||||
}
|
||||
const orgToShow = selectedOrg.value || orgForUser
|
||||
if (orgToShow) {
|
||||
// Add org breadcrumb only if it's not already included in the Admin entry
|
||||
const adminOrg = (isOrgAdmin.value && !isMasterAdmin.value && orgs.value.length > 0) ? orgs.value[0] : null
|
||||
if (orgToShow && (!adminOrg || orgToShow.uuid !== adminOrg.uuid)) {
|
||||
entries.push({ label: orgToShow.display_name, href: `#org/${orgToShow.uuid}` })
|
||||
}
|
||||
if (currentOidcId.value) {
|
||||
|
||||
@@ -385,7 +385,7 @@ const useWideLayout = computed(() => {
|
||||
|
||||
return hasLargeSessionGroup || hasManyCredentials
|
||||
})
|
||||
const breadcrumbEntries = computed(() => { const entries = [{ label: 'Auth', href: makeUiHref() }]; if (isAdmin.value) entries.push({ label: 'Admin', href: adminUiPath() }); return entries })
|
||||
const breadcrumbEntries = computed(() => { const entries = [{ label: 'My Profile', href: makeUiHref() }]; if (isAdmin.value) entries.push({ label: 'Admin', href: adminUiPath() }); return entries })
|
||||
|
||||
const saveProfile = async () => {
|
||||
const name = editName.value.trim()
|
||||
|
||||
Reference in New Issue
Block a user