[Client] Improve alert component
This commit is contained in:
parent
850396e9da
commit
11afa8140c
31 changed files with 268 additions and 672 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue