mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix: review from wolle, fix lint
This commit is contained in:
parent
635b7e0d23
commit
fde69a3b21
@ -156,15 +156,6 @@ export default {
|
|||||||
path: '/settings',
|
path: '/settings',
|
||||||
icon: 'edit',
|
icon: 'edit',
|
||||||
})
|
})
|
||||||
if (this.isAdmin === true && !this.isOwner) {
|
|
||||||
routes.push({
|
|
||||||
label: this.$t(`settings.deleteUserAccount.name`),
|
|
||||||
callback: () => {
|
|
||||||
this.$emit('delete', this.resource)
|
|
||||||
},
|
|
||||||
icon: 'trash',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (this.resource.isMuted) {
|
if (this.resource.isMuted) {
|
||||||
routes.push({
|
routes.push({
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
<p v-show="enableDeletionValue" class="notice">
|
<p v-show="enableDeletionValue" class="notice">
|
||||||
{{ $t('settings.deleteUserAccount.accountDescription') }}
|
{{ $t('settings.deleteUserAccount.accountDescription') }}
|
||||||
</p>
|
</p>
|
||||||
<label v-if="currentUserCounts.contributionsCount" class="checkbox">
|
<label class="checkbox">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
v-model="deleteContributions"
|
v-model="deleteContributions"
|
||||||
|
|||||||
@ -13,24 +13,24 @@
|
|||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
<ds-flex-item width="20%">
|
<ds-flex-item width="20%">
|
||||||
<ds-text size="small">
|
<ds-text size="small">
|
||||||
<relative-date-time :date-time="userdata.createdAt" class="relative-date-time" />
|
<span class="bold">{{ $t('modals.deleteUser.created') }}</span>
|
||||||
<br />
|
<br />
|
||||||
{{ $t('modals.deleteUser.created') }}
|
<relative-date-time :date-time="userdata.createdAt" />
|
||||||
</ds-text>
|
</ds-text>
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
<ds-flex-item width="15%">
|
<ds-flex-item width="15%">
|
||||||
<ds-number
|
<ds-text size="small">
|
||||||
size="small"
|
<span class="bold">{{ $t('common.post', null, userdata.contributionsCount) }}</span>
|
||||||
:count="userdata.contributionsCount"
|
<br />
|
||||||
:label="$t('common.post', null, userdata.contributionsCount)"
|
{{ userdata.contributionsCount }}
|
||||||
/>
|
</ds-text>
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
<ds-flex-item width="15%">
|
<ds-flex-item width="15%">
|
||||||
<ds-number
|
<ds-text size="small">
|
||||||
size="small"
|
<span class="bold">{{ $t('common.comment', null, userdata.commentedCount) }}</span>
|
||||||
:count="userdata.commentedCount"
|
<br />
|
||||||
:label="$t('common.comment', null, userdata.commentedCount)"
|
{{ userdata.commentedCount }}
|
||||||
/>
|
</ds-text>
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
</ds-flex>
|
</ds-flex>
|
||||||
</ds-section>
|
</ds-section>
|
||||||
@ -176,7 +176,7 @@ export default {
|
|||||||
z-index: $z-index-modal;
|
z-index: $z-index-modal;
|
||||||
border-radius: $border-radius-x-large;
|
border-radius: $border-radius-x-large;
|
||||||
}
|
}
|
||||||
.relative-date-time {
|
.bold {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -637,7 +637,7 @@
|
|||||||
"deleteUserAccount": {
|
"deleteUserAccount": {
|
||||||
"accountDescription": "Sei dir bewusst, dass deine Beiträge und Kommentare für unsere Community wichtig sind. Wenn du sie trotzdem löschen möchtest, musst du sie unten markieren.",
|
"accountDescription": "Sei dir bewusst, dass deine Beiträge und Kommentare für unsere Community wichtig sind. Wenn du sie trotzdem löschen möchtest, musst du sie unten markieren.",
|
||||||
"accountWarning": "Dein Konto, deine Beiträge oder Kommentare kannst du nach dem Löschen WEDER VERWALTEN NOCH WIEDERHERSTELLEN!",
|
"accountWarning": "Dein Konto, deine Beiträge oder Kommentare kannst du nach dem Löschen WEDER VERWALTEN NOCH WIEDERHERSTELLEN!",
|
||||||
"accountWarningAdmin": "Das Konto, die Beiträge oder Kommentare können nach dem Löschen WEDER VERWALTEN NOCH WIEDERHERGESTELLT WERDEN!",
|
"accountWarningAdmin": "Das Konto, die Beiträge oder Kommentare können nach dem Löschen WEDER VERWALTET NOCH WIEDERHERGESTELLT WERDEN!",
|
||||||
"accountWarningIsAdmin": "Achtung! Du löschst jetzt ein Benutzerkonto!",
|
"accountWarningIsAdmin": "Achtung! Du löschst jetzt ein Benutzerkonto!",
|
||||||
"commentedCount": "Meinen {count} Kommentar löschen ::: Meine {count} Kommentare löschen",
|
"commentedCount": "Meinen {count} Kommentar löschen ::: Meine {count} Kommentare löschen",
|
||||||
"confirmDeleting": "Benutzerkonto jetzt löschen",
|
"confirmDeleting": "Benutzerkonto jetzt löschen",
|
||||||
|
|||||||
@ -642,7 +642,7 @@
|
|||||||
"commentedCount": "Delete my {count} comment ::: Delete my {count} comments",
|
"commentedCount": "Delete my {count} comment ::: Delete my {count} comments",
|
||||||
"confirmDeleting": "Delete user account now",
|
"confirmDeleting": "Delete user account now",
|
||||||
"contributionsCount": "Delete my {count} post ::: Delete my {count} posts",
|
"contributionsCount": "Delete my {count} post ::: Delete my {count} posts",
|
||||||
"infoAdmin": "All contributions and comments of the user are additionally deleted!",
|
"infoAdmin": "All contributions and comments of the user will be deleted additionally!",
|
||||||
"name": "Delete user account",
|
"name": "Delete user account",
|
||||||
"pleaseConfirm": "Destructive action! Type “{confirm}” to confirm.",
|
"pleaseConfirm": "Destructive action! Type “{confirm}” to confirm.",
|
||||||
"success": "Account successfully deleted!"
|
"success": "Account successfully deleted!"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user