From 8a62748e39d5c0281713ed5d15236030a9dbecbe Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 10 Oct 2018 20:02:56 +0900 Subject: [PATCH] :art: --- .../app/common/views/components/note-menu.vue | 8 +- src/client/app/common/views/components/ok.vue | 175 ++++++++++++++++++ .../app/mobile/views/components/dialog.vue | 2 - 3 files changed, 177 insertions(+), 8 deletions(-) create mode 100644 src/client/app/common/views/components/ok.vue diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue index fd66cba8c..5bc4bc7e4 100644 --- a/src/client/app/common/views/components/note-menu.vue +++ b/src/client/app/common/views/components/note-menu.vue @@ -8,6 +8,7 @@ import Vue from 'vue'; import { url } from '../../../config'; import copyToClipboard from '../../../common/scripts/copy-to-clipboard'; +import Ok from './ok.vue'; export default Vue.extend({ props: ['note', 'source', 'compact'], @@ -103,12 +104,7 @@ export default Vue.extend({ (this as any).api('notes/favorites/create', { noteId: this.note.id }).then(() => { - this.$swal({ - type: 'success', - showConfirmButton: false, - timer: 1250, - customClass: 'swal-icon-only' - }); + (this as any).os.new(Ok); this.destroyDom(); }); }, diff --git a/src/client/app/common/views/components/ok.vue b/src/client/app/common/views/components/ok.vue new file mode 100644 index 000000000..63bd784b1 --- /dev/null +++ b/src/client/app/common/views/components/ok.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/src/client/app/mobile/views/components/dialog.vue b/src/client/app/mobile/views/components/dialog.vue index fff44a28c..4f935cf03 100644 --- a/src/client/app/mobile/views/components/dialog.vue +++ b/src/client/app/mobile/views/components/dialog.vue @@ -91,8 +91,6 @@ export default Vue.extend({