client: remove duplicated check

Since the enclosing block already checks for moderator, this check is unnecessary.
This commit is contained in:
Johann150 2023-01-12 20:09:24 +01:00
parent 2a8792fe07
commit f9c360d59f
Signed by: Johann150
GPG Key ID: 9EE6577A2A06F8F1
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<FormSwitch v-model="suspended" class="_formBlock" @update:modelValue="toggleSuspend">{{ i18n.ts.suspend }}</FormSwitch>
{{ i18n.ts.reflectMayTakeTime }}
<div class="_formBlock">
<MkButton v-if="user.host == null && iAmModerator" inline style="margin-right: 8px;" @click="resetPassword"><i class="fas fa-key"></i> {{ i18n.ts.resetPassword }}</MkButton>
<MkButton v-if="user.host == null" inline style="margin-right: 8px;" @click="resetPassword"><i class="fas fa-key"></i> {{ i18n.ts.resetPassword }}</MkButton>
<MkButton inline danger @click="deleteAllFiles">{{ i18n.ts.deleteAllFiles }}</MkButton>
<MkButton v-if="$i.isAdmin" inline danger @click="deleteAccount">{{ i18n.ts.deleteAccount }}</MkButton>
</div>