fix(frontend): カスタム絵文字管理画面(beta)にてisSensitive/localOnlyの絞り込みが上手くいかない問題の修正 (#15461)
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
This commit is contained in:
		| @@ -71,6 +71,9 @@ export type EmojiSearchQuery = { | ||||
| <script setup lang="ts"> | ||||
| import { computed, defineAsyncComponent, onMounted, ref, nextTick, useCssModule } from 'vue'; | ||||
| import * as Misskey from 'misskey-js'; | ||||
| import type { RequestLogItem } from '@/pages/admin/custom-emojis-manager.impl.js'; | ||||
| import type { GridCellValidationEvent, GridCellValueChangeEvent, GridEvent } from '@/components/grid/grid-event.js'; | ||||
| import type { GridSetting } from '@/components/grid/grid.js'; | ||||
| import * as os from '@/os.js'; | ||||
| import { | ||||
| 	emptyStrToEmptyArray, | ||||
| @@ -86,11 +89,7 @@ import { misskeyApi } from '@/scripts/misskey-api.js'; | ||||
| import MkPagingButtons from '@/components/MkPagingButtons.vue'; | ||||
| import { selectFile } from '@/scripts/select-file.js'; | ||||
| import { copyGridDataToClipboard, removeDataFromGrid } from '@/components/grid/grid-utils.js'; | ||||
| import { useLoading } from "@/components/hook/useLoading.js"; | ||||
|  | ||||
| import type { RequestLogItem } from '@/pages/admin/custom-emojis-manager.impl.js'; | ||||
| import type { GridCellValidationEvent, GridCellValueChangeEvent, GridEvent } from '@/components/grid/grid-event.js'; | ||||
| import type { GridSetting } from '@/components/grid/grid.js'; | ||||
| import { useLoading } from '@/components/hook/useLoading.js'; | ||||
|  | ||||
| type GridItem = { | ||||
| 	checked: boolean; | ||||
| @@ -465,8 +464,8 @@ async function refreshCustomEmojis() { | ||||
| 		aliases: emptyStrToUndefined(searchQuery.value.aliases), | ||||
| 		category: emptyStrToUndefined(searchQuery.value.category), | ||||
| 		license: emptyStrToUndefined(searchQuery.value.license), | ||||
| 		isSensitive: searchQuery.value.sensitive ? Boolean(searchQuery.value.sensitive).valueOf() : undefined, | ||||
| 		localOnly: searchQuery.value.localOnly ? Boolean(searchQuery.value.localOnly).valueOf() : undefined, | ||||
| 		isSensitive: searchQuery.value.sensitive != null ? Boolean(searchQuery.value.sensitive).valueOf() : undefined, | ||||
| 		localOnly: searchQuery.value.localOnly != null ? Boolean(searchQuery.value.localOnly).valueOf() : undefined, | ||||
| 		updatedAtFrom: emptyStrToUndefined(searchQuery.value.updatedAtFrom), | ||||
| 		updatedAtTo: emptyStrToUndefined(searchQuery.value.updatedAtTo), | ||||
| 		roleIds: searchQuery.value.roles.map(it => it.id), | ||||
| @@ -593,7 +592,7 @@ const headerActions = computed(() => [{ | ||||
| 				dispose(); | ||||
| 			}, | ||||
| 		}); | ||||
| 	} | ||||
| 	}, | ||||
| }]); | ||||
| </script> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 おさむのひと
					おさむのひと