RE: [Client] Fix bug

This commit is contained in:
syuilo 2018-11-04 18:36:19 +09:00
parent e1839afcf5
commit 893e48ef13
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}` });
});
}
}