diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-14 16:30:58 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-14 16:30:58 +0900 |
| commit | 11afa8140c5706c8ad105e50cef63df83db66e7a (patch) | |
| tree | d7e322dab3dc20f9ba86681dd7b2354af922fdda /src/client/app/admin/views/instance.vue | |
| parent | [Client] Add missing icons (diff) | |
| download | sharkey-11afa8140c5706c8ad105e50cef63df83db66e7a.tar.gz sharkey-11afa8140c5706c8ad105e50cef63df83db66e7a.tar.bz2 sharkey-11afa8140c5706c8ad105e50cef63df83db66e7a.zip | |
[Client] Improve alert component
Diffstat (limited to 'src/client/app/admin/views/instance.vue')
| -rw-r--r-- | src/client/app/admin/views/instance.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/admin/views/instance.vue b/src/client/app/admin/views/instance.vue index 130a78e5c5..e52a20d708 100644 --- a/src/client/app/admin/views/instance.vue +++ b/src/client/app/admin/views/instance.vue @@ -149,7 +149,7 @@ export default Vue.extend({ this.$root.api('admin/invite').then(x => { this.inviteCode = x.code; }).catch(e => { - this.$swal({ + this.$root.alert({ type: 'error', text: e }); @@ -181,12 +181,12 @@ export default Vue.extend({ githubClientId: this.githubClientId, githubClientSecret: this.githubClientSecret, }).then(() => { - this.$swal({ + this.$root.alert({ type: 'success', text: this.$t('saved') }); }).catch(e => { - this.$swal({ + this.$root.alert({ type: 'error', text: e }); |