diff options
Diffstat (limited to 'src/client/pages/test.vue')
| -rw-r--r-- | src/client/pages/test.vue | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client/pages/test.vue b/src/client/pages/test.vue index 02b4d1614d..b053b859bb 100644 --- a/src/client/pages/test.vue +++ b/src/client/pages/test.vue @@ -107,6 +107,14 @@ </div> <div class="_card _vMargin"> + <div class="_title">Waiting dialog</div> + <div class="_content"> + <MkButton inline @click="openWaitingDialog()">icon only</MkButton> + <MkButton inline @click="openWaitingDialog('Doing')">with text</MkButton> + </div> + </div> + + <div class="_card _vMargin"> <div class="_title">Messaging window</div> <div class="_content"> <MkButton @click="messagingWindowOpen()">open</MkButton> @@ -224,6 +232,13 @@ export default defineComponent({ os.pageWindow('/my/messaging', defineAsyncComponent(() => import('@/pages/messaging/index.vue'))); }, + openWaitingDialog(text?) { + const promise = new Promise((resolve, reject) => { + setTimeout(resolve, 2000); + }); + os.promiseDialog(promise, null, null, text); + }, + resetTutorial() { this.$store.dispatch('settings/set', { key: 'tutorial', value: 0 }); }, |