show migration restart in the modlog
This commit is contained in:
parent
42470f099a
commit
e2fd380f0c
3 changed files with 11 additions and 0 deletions
4
locales/index.d.ts
vendored
4
locales/index.d.ts
vendored
|
|
@ -11068,6 +11068,10 @@ export interface Locale extends ILocale {
|
|||
* Removed a relay
|
||||
*/
|
||||
"removeRelay": string;
|
||||
/**
|
||||
* Restarted migration for a user
|
||||
*/
|
||||
"restartMigration": string;
|
||||
};
|
||||
"_fileViewer": {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
'importCustomEmojis',
|
||||
'createPromo',
|
||||
'addRelay',
|
||||
'restartMigration',
|
||||
].includes(log.type),
|
||||
[$style.logYellow]: [
|
||||
'markSensitiveDriveFile',
|
||||
|
|
@ -130,6 +131,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<span v-else-if="log.type === 'createPromo'">: @{{ log.info.noteUserUsername }}{{ log.info.noteUserHost ? '@' + log.info.noteUserHost : '' }}</span>
|
||||
<span v-else-if="log.type === 'addRelay'">: {{ log.info.inbox }}</span>
|
||||
<span v-else-if="log.type === 'removeRelay'">: {{ log.info.inbox }}</span>
|
||||
<span v-else-if="log.type === 'restartMigration'">: @{{ log.info.userUsername }}{{ log.info.userHost ? '@' + log.info.userHost : '' }}</span>
|
||||
</template>
|
||||
<template #icon>
|
||||
<i v-if="log.type === 'updateServerSettings'" class="ti ti-settings"></i>
|
||||
|
|
@ -174,6 +176,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<i v-else-if="log.type === 'deleteFlash'" class="ti ti-trash"></i>
|
||||
<i v-else-if="log.type === 'deleteGalleryPost'" class="ti ti-trash"></i>
|
||||
<i v-else-if="log.type === 'deleteChatRoom'" class="ti ti-trash"></i>
|
||||
<i v-else-if="log.type === 'restartMigration'" class="ph-airplane-takeoff ph-bold ph-lg"></i>
|
||||
</template>
|
||||
<template #suffix>
|
||||
<MkTime :time="log.createdAt"/>
|
||||
|
|
@ -223,6 +226,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<template v-else-if="log.type === 'unsuspend'">
|
||||
<div>{{ i18n.ts.user }}: <MkA :to="`/admin/user/${log.info.userId}`" class="_link">@{{ log.info.userUsername }}{{ log.info.userHost ? '@' + log.info.userHost : '' }}</MkA></div>
|
||||
</template>
|
||||
<template v-else-if="log.type === 'restartMigration'">
|
||||
<div>{{ i18n.ts.user }}: <MkA :to="`/admin/user/${log.info.userId}`" class="_link">@{{ log.info.userUsername }}{{ log.info.userHost ? '@' + log.info.userHost : '' }}</MkA></div>
|
||||
</template>
|
||||
<template v-else-if="log.type === 'rejectQuotesUser'">
|
||||
<div>{{ i18n.ts.user }}: <MkA :to="`/admin/user/${log.info.userId}`" class="_link">@{{ log.info.userUsername }}{{ log.info.userHost ? '@' + log.info.userHost : '' }}</MkA></div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -376,6 +376,7 @@ _moderationLogTypes:
|
|||
createPromo: "Created a note promo"
|
||||
addRelay: "Added a relay"
|
||||
removeRelay: "Removed a relay"
|
||||
restartMigration: "Restarted migration for a user"
|
||||
|
||||
_mfm:
|
||||
uncommonFeature: "This is not a widespread feature, it may not display properly on most other fedi software, including other Misskey forks"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue