enhance(client): make possible to hide ads

Resolve #9590
Resolve #8996
This commit is contained in:
syuilo
2023-01-16 11:21:04 +09:00
parent 60d9bb0218
commit fe0bb21b37
6 changed files with 51 additions and 2 deletions

View File

@@ -121,6 +121,14 @@
</MkInput>
</MkFolder>
<MkFolder>
<template #label>{{ i18n.ts._role._options.canHideAds }}</template>
<template #suffix>{{ policies.canHideAds ? i18n.ts.yes : i18n.ts.no }}</template>
<MkSwitch v-model="policies.canHideAds">
<template #label>{{ i18n.ts.enable }}</template>
</MkSwitch>
</MkFolder>
<MkButton primary rounded @click="updateBaseRole">{{ i18n.ts.save }}</MkButton>
</div>
</MkFolder>
@@ -156,6 +164,7 @@ const ROLE_POLICIES = [
'canPublicNote',
'canInvite',
'canManageCustomEmojis',
'canHideAds',
'driveCapacityMb',
'pinLimit',
'antennaLimit',