Skip to content

Commit

Permalink
Moving userIsAdmin check to tab
Browse files Browse the repository at this point in the history
moved the check for userIsAdmin to the tab itself so the whole tab will not
show up unless you are an admin, before this change it would have the
telescope tab but it would be empty inside. This way is more logical
  • Loading branch information
LTDakin committed Nov 14, 2023
1 parent ae8f95a commit 0cfc596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/sitepages/SiteData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
</b-tab-item>

<b-tab-item
v-if="userIsAdmin"
label="telescope"
:value="'telescope'"
>
<div
v-if="userIsAdmin"
class="obs-config-box"
>
<div class="obs-config-control-group">
Expand Down

0 comments on commit 0cfc596

Please sign in to comment.