mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 13:25:04 +00:00
feat: user application dashboard (#727)
Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
{ href: '/settings/audit-log', label: m.audit_log() }
|
||||
];
|
||||
|
||||
const nonAdminLinks = [{ href: '/settings/apps', label: m.my_apps() }];
|
||||
|
||||
const adminLinks = [
|
||||
{ href: '/settings/admin/users', label: m.users() },
|
||||
{ href: '/settings/admin/user-groups', label: m.user_groups() },
|
||||
@@ -35,6 +37,8 @@
|
||||
|
||||
if (user?.isAdmin || $userStore?.isAdmin) {
|
||||
links.push(...adminLinks);
|
||||
} else {
|
||||
links.push(...nonAdminLinks);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user