fix(frontend): ウィジェットの設定画面のプレビューが利用できない問題を修正 (#17056)

This commit is contained in:
かっこかり 2025-12-31 18:06:22 +09:00 committed by GitHub
parent 01aa56c602
commit 866e675134
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
@ok="save()"
@closed="emit('closed')"
>
<template #header><i class="ti ti-icons"></i> {{ widgetName }}</template>
<template #header><i class="ti ti-icons"></i> {{ i18n.ts._widgets[widgetName] ?? widgetName }}</template>
<MkPreviewWithControls>
<template #preview>

View File

@ -76,7 +76,7 @@ export const useWidgetPropsManager = <F extends FormWithDefault>(
canceled: true;
}>((resolve) => {
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkWidgetSettingsDialog.vue')), {
widgetName: i18n.ts._widgets[name] ?? name,
widgetName: name,
form: form,
currentSettings: widgetProps,
}, {