diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-11 21:09:35 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-11 21:09:35 +0900 |
| commit | a88e486468b53145d7745411db02fe507ddffb78 (patch) | |
| tree | 08d4726422ef4d30ccb67f3f8b5275e00f800707 /src/client/os.ts | |
| parent | Resolve #7425 (diff) | |
| download | misskey-a88e486468b53145d7745411db02fe507ddffb78.tar.gz misskey-a88e486468b53145d7745411db02fe507ddffb78.tar.bz2 misskey-a88e486468b53145d7745411db02fe507ddffb78.zip | |
Tweak UI
Diffstat (limited to 'src/client/os.ts')
| -rw-r--r-- | src/client/os.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/os.ts b/src/client/os.ts index e1707531de..b159cf509d 100644 --- a/src/client/os.ts +++ b/src/client/os.ts @@ -203,6 +203,15 @@ export function pageWindow(path: string) { }, {}, 'closed'); } +export function modalPageWindow(path: string) { + const { component, props } = resolve(path); + popup(import('@client/components/modal-page-window.vue'), { + initialPath: path, + initialComponent: markRaw(component), + initialProps: props, + }, {}, 'closed'); +} + export function dialog(props: Record<string, any>) { return new Promise((resolve, reject) => { popup(import('@client/components/dialog.vue'), props, { |