Skip to content

Commit

Permalink
also don't show the toggle plain button
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed May 26, 2024
1 parent 5df3c04 commit 07c0b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/viewer/RoleViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<h1 class="text-h5">Pending</h1>
<pre v-text="role.pendingEmail.join('\n')"></pre>
</div>
<v-btn v-if="!editing&&!creating" text @click="showPlainEmail=!showPlainEmail">Toggle Plain</v-btn>
<v-btn v-if="!editing&&!creating&&usersWithRole.length" text @click="showPlainEmail=!showPlainEmail">Toggle Plain</v-btn>
</v-card-text>
<PermissionEditor v-model="editedPermissions" :editing="editing"
no-data="No permission overrides set for this role"></PermissionEditor>
Expand Down

0 comments on commit 07c0b68

Please sign in to comment.