From 92c88a23ad034c677c8770b5df3d2f7f57789a1d Mon Sep 17 00:00:00 2001 From: samunohito <46447427+samunohito@users.noreply.github.com> Date: Thu, 29 Feb 2024 07:50:26 +0900 Subject: [PATCH] add type column --- .../src/pages/admin/custom-emojis-manager.local.list.vue | 3 +++ .../src/pages/admin/custom-emojis-manager.local.register.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/frontend/src/pages/admin/custom-emojis-manager.local.list.vue b/packages/frontend/src/pages/admin/custom-emojis-manager.local.list.vue index da04d1e5cc..ac65198087 100644 --- a/packages/frontend/src/pages/admin/custom-emojis-manager.local.list.vue +++ b/packages/frontend/src/pages/admin/custom-emojis-manager.local.list.vue @@ -195,6 +195,7 @@ type GridItem = { updatedAt: string | null; publicUrl?: string | null; originalUrl?: string | null; + type: string | null; } function setupGrid(): GridSetting { @@ -304,6 +305,7 @@ function setupGrid(): GridSetting { }, }, }, + { bindTo: 'type', type: 'text', editable: false, width: 90 }, { bindTo: 'updatedAt', type: 'text', editable: false, width: 'auto' }, { bindTo: 'publicUrl', type: 'text', editable: false, width: 180 }, { bindTo: 'originalUrl', type: 'text', editable: false, width: 180 }, @@ -597,6 +599,7 @@ function refreshGridItems() { updatedAt: it.updatedAt, publicUrl: it.publicUrl, originalUrl: it.originalUrl, + type: it.type, })); originGridItems.value = JSON.parse(JSON.stringify(gridItems.value)); } diff --git a/packages/frontend/src/pages/admin/custom-emojis-manager.local.register.vue b/packages/frontend/src/pages/admin/custom-emojis-manager.local.register.vue index 424d04d561..cf84f6a7c3 100644 --- a/packages/frontend/src/pages/admin/custom-emojis-manager.local.register.vue +++ b/packages/frontend/src/pages/admin/custom-emojis-manager.local.register.vue @@ -114,6 +114,7 @@ type GridItem = { isSensitive: boolean; localOnly: boolean; roleIdsThatCanBeUsedThisEmojiAsReaction: { id: string, name: string }[]; + type: string | null; } function setupGrid(): GridSetting { @@ -206,6 +207,7 @@ function setupGrid(): GridSetting { }, }, }, + { bindTo: 'type', type: 'text', editable: false, width: 90 }, ], cells: { // セルのコンテキストメニュー設定 @@ -411,6 +413,7 @@ function fromDriveFile(it: Misskey.entities.DriveFile): GridItem { isSensitive: it.isSensitive, localOnly: false, roleIdsThatCanBeUsedThisEmojiAsReaction: [], + type: it.type, }; }