diff --git a/src/client/app/test/views/index.vue b/src/client/app/test/views/index.vue index b1947ffa4..be75f8ae8 100644 --- a/src/client/app/test/views/index.vue +++ b/src/client/app/test/views/index.vue @@ -11,6 +11,25 @@ + + +
Dialog Generator
+
+ + + + + + + Title + + + Text + + With cancel button + Show +
+
@@ -21,7 +40,22 @@ export default Vue.extend({ data() { return { mfm: '', + dialogType: 'success', + dialogTitle: '', + dialogText: 'Hello World!', + dialogShowCancelButton: false }; + }, + + methods: { + showDialog() { + this.$root.alert({ + type: this.dialogType, + title: this.dialogTitle, + text: this.dialogText, + showCancelButton: this.dialogShowCancelButton + }); + } } });