summaryrefslogtreecommitdiff
path: root/src/client/os.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-04-11 21:09:35 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-04-11 21:09:35 +0900
commita88e486468b53145d7745411db02fe507ddffb78 (patch)
tree08d4726422ef4d30ccb67f3f8b5275e00f800707 /src/client/os.ts
parentResolve #7425 (diff)
downloadmisskey-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.ts9
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, {