mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 03:15:58 +02:00
enhance(frontend): 非同期的なコンポーネントの読み込み時のハンドリングを強化
This commit is contained in:
@@ -95,8 +95,8 @@ export async function authorizePlugin(plugin: Plugin) {
|
||||
if (plugin.permissions == null || plugin.permissions.length === 0) return;
|
||||
if (Object.hasOwn(store.s.pluginTokens, plugin.installId)) return;
|
||||
|
||||
const token = await new Promise<string>((res, rej) => {
|
||||
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkTokenGenerateWindow.vue')), {
|
||||
const token = await new Promise<string>(async (res, rej) => {
|
||||
const { dispose } = await os.popupAsyncWithDialog(import('@/components/MkTokenGenerateWindow.vue').then(x => x.default), {
|
||||
title: i18n.ts.tokenRequested,
|
||||
information: i18n.ts.pluginTokenRequestedDescription,
|
||||
initialName: plugin.name,
|
||||
|
||||
Reference in New Issue
Block a user