From 95c89ca6dba7694ff71935abf26ff602bdb3a1dc Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 4 Nov 2018 18:36:19 +0900 Subject: [PATCH] RE: [Client] Fix bug --- src/client/app/admin/views/announcements.vue | 4 ++-- src/client/app/admin/views/emoji.vue | 12 ++++++------ src/client/app/admin/views/hashtags.vue | 4 ++-- src/client/app/admin/views/instance.vue | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/client/app/admin/views/announcements.vue b/src/client/app/admin/views/announcements.vue index 4eea9dd94..0e983c5a9 100644 --- a/src/client/app/admin/views/announcements.vue +++ b/src/client/app/admin/views/announcements.vue @@ -54,9 +54,9 @@ export default Vue.extend({ (this as any).api('admin/update-meta', { broadcasts: this.announcements }).then(() => { - (this as any).os.apis.dialog({ text: `Saved` }); + //(this as any).os.apis.dialog({ text: `Saved` }); }).catch(e => { - (this as any).os.apis.dialog({ text: `Failed ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed ${e}` }); }); } } diff --git a/src/client/app/admin/views/emoji.vue b/src/client/app/admin/views/emoji.vue index 18a41451c..f49a3ba76 100644 --- a/src/client/app/admin/views/emoji.vue +++ b/src/client/app/admin/views/emoji.vue @@ -70,10 +70,10 @@ export default Vue.extend({ url: this.url, aliases: this.aliases.split(' ') }).then(() => { - (this as any).os.apis.dialog({ text: `Added` }); + //(this as any).os.apis.dialog({ text: `Added` }); this.fetchEmojis(); }).catch(e => { - (this as any).os.apis.dialog({ text: `Failed ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed ${e}` }); }); }, @@ -91,9 +91,9 @@ export default Vue.extend({ url: emoji.url, aliases: emoji.aliases.split(' ') }).then(() => { - (this as any).os.apis.dialog({ text: `Updated` }); + //(this as any).os.apis.dialog({ text: `Updated` }); }).catch(e => { - (this as any).os.apis.dialog({ text: `Failed ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed ${e}` }); }); }, @@ -101,10 +101,10 @@ export default Vue.extend({ (this as any).api('admin/emoji/remove', { id: emoji.id }).then(() => { - (this as any).os.apis.dialog({ text: `Removed` }); + //(this as any).os.apis.dialog({ text: `Removed` }); this.fetchEmojis(); }).catch(e => { - (this as any).os.apis.dialog({ text: `Failed ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed ${e}` }); }); } } diff --git a/src/client/app/admin/views/hashtags.vue b/src/client/app/admin/views/hashtags.vue index be90cea1d..1635305f1 100644 --- a/src/client/app/admin/views/hashtags.vue +++ b/src/client/app/admin/views/hashtags.vue @@ -29,9 +29,9 @@ export default Vue.extend({ (this as any).api('admin/update-meta', { hidedTags: this.hidedTags.split('\n') }).then(() => { - (this as any).os.apis.dialog({ text: `Saved` }); + //(this as any).os.apis.dialog({ text: `Saved` }); }).catch(e => { - (this as any).os.apis.dialog({ text: `Failed ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed ${e}` }); }); } } diff --git a/src/client/app/admin/views/instance.vue b/src/client/app/admin/views/instance.vue index a6e89f8ab..1278f38a9 100644 --- a/src/client/app/admin/views/instance.vue +++ b/src/client/app/admin/views/instance.vue @@ -43,7 +43,7 @@ export default Vue.extend({ (this as any).api('admin/invite').then(x => { this.inviteCode = x.code; }).catch(e => { - (this as any).os.apis.dialog({ text: `Failed ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed ${e}` }); }); }, updateMeta() { @@ -52,9 +52,9 @@ export default Vue.extend({ disableLocalTimeline: this.disableLocalTimeline, bannerUrl: this.bannerUrl }).then(() => { - (this as any).os.apis.dialog({ text: `Saved` }); + //(this as any).os.apis.dialog({ text: `Saved` }); }).catch(e => { - (this as any).os.apis.dialog({ text: `Failed ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed ${e}` }); }); } }