Skip to content

Commit

Permalink
relabel variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Apr 30, 2024
1 parent fbb26c1 commit d04e828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composables/userSettingsButtons.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

export default () => {
const currentUser = useCurrentUserStore();
const links = computed(() => {
const buttons = computed(() => {
const out = [
{ label: 'Sign Out', to: '/user/logout', icon: 'ph:door', severity: 'primary' },
];
if (currentUser.props?.admin)
out.push({ label: 'Admin', to: '/admin', icon: 'ph:users', severity: 'secondary' });
return out;
});
return links;
return buttons;
}

0 comments on commit d04e828

Please sign in to comment.