show migration restart in the modlog

This commit is contained in:
Hazelnoot 2025-09-14 20:57:00 -04:00
parent 42470f099a
commit e2fd380f0c
3 changed files with 11 additions and 0 deletions

View file

@ -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>