mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Prevent admin from resetting their own role.
This commit is contained in:
parent
2e871af05b
commit
f25cd93012
10 changed files with 66 additions and 31 deletions
|
|
@ -29,7 +29,7 @@ export function TeamsButton({ teamId }: { teamId: string }) {
|
|||
</Button>
|
||||
<Popup alignment="end">
|
||||
{(close: () => void) => (
|
||||
<Menu variant="popup" onSelect={handleSelect.bind(null, close)}>
|
||||
<Menu className={styles.menu} variant="popup" onSelect={handleSelect.bind(null, close)}>
|
||||
<div className={styles.heading}>{formatMessage(labels.myAccount)}</div>
|
||||
<Item key={user.id} className={classNames({ [styles.selected]: !teamId })}>
|
||||
<Flexbox gap={10} alignItems="center">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue