|
@@ -10,7 +10,7 @@
|
|
>
|
|
>
|
|
<template #content>
|
|
<template #content>
|
|
<div class="dropdown-menu">
|
|
<div class="dropdown-menu">
|
|
- <span v-if="user.is_local">
|
|
|
|
|
|
+ <span v-if="canGrantRole">
|
|
<button
|
|
<button
|
|
class="button-default dropdown-item"
|
|
class="button-default dropdown-item"
|
|
@click="toggleRight("admin")"
|
|
@click="toggleRight("admin")"
|
|
@@ -24,28 +24,31 @@
|
|
{{ $t(!!user.rights.moderator ? 'user_card.admin_menu.revoke_moderator' : 'user_card.admin_menu.grant_moderator') }}
|
|
{{ $t(!!user.rights.moderator ? 'user_card.admin_menu.revoke_moderator' : 'user_card.admin_menu.grant_moderator') }}
|
|
</button>
|
|
</button>
|
|
<div
|
|
<div
|
|
|
|
+ v-if="canChangeActivationState || canDeleteAccount"
|
|
role="separator"
|
|
role="separator"
|
|
class="dropdown-divider"
|
|
class="dropdown-divider"
|
|
/>
|
|
/>
|
|
</span>
|
|
</span>
|
|
<button
|
|
<button
|
|
|
|
+ v-if="canChangeActivationState"
|
|
class="button-default dropdown-item"
|
|
class="button-default dropdown-item"
|
|
@click="toggleActivationStatus()"
|
|
@click="toggleActivationStatus()"
|
|
>
|
|
>
|
|
{{ $t(!!user.deactivated ? 'user_card.admin_menu.activate_account' : 'user_card.admin_menu.deactivate_account') }}
|
|
{{ $t(!!user.deactivated ? 'user_card.admin_menu.activate_account' : 'user_card.admin_menu.deactivate_account') }}
|
|
</button>
|
|
</button>
|
|
<button
|
|
<button
|
|
|
|
+ v-if="canDeleteAccount"
|
|
class="button-default dropdown-item"
|
|
class="button-default dropdown-item"
|
|
@click="deleteUserDialog(true)"
|
|
@click="deleteUserDialog(true)"
|
|
>
|
|
>
|
|
{{ $t('user_card.admin_menu.delete_account') }}
|
|
{{ $t('user_card.admin_menu.delete_account') }}
|
|
</button>
|
|
</button>
|
|
<div
|
|
<div
|
|
- v-if="hasTagPolicy"
|
|
|
|
|
|
+ v-if="canUseTagPolicy"
|
|
role="separator"
|
|
role="separator"
|
|
class="dropdown-divider"
|
|
class="dropdown-divider"
|
|
/>
|
|
/>
|
|
- <span v-if="hasTagPolicy">
|
|
|
|
|
|
+ <span v-if="canUseTagPolicy">
|
|
<button
|
|
<button
|
|
class="button-default dropdown-item"
|
|
class="button-default dropdown-item"
|
|
@click="toggleTag(tags.FORCE_NSFW)"
|
|
@click="toggleTag(tags.FORCE_NSFW)"
|