RE: [Client] Fix bug

This commit is contained in:
syuilo 2018-11-04 18:36:19 +09:00
parent 7fe0d71e7f
commit 95c89ca6db
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
4 changed files with 13 additions and 13 deletions

View file

@ -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}` });
});
}
}

View file

@ -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}` });
});
}
}

View file

@ -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}` });
});
}
}

View file

@ -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}` });
});
}
}