refactor(ui): minor ui improvements

This commit is contained in:
liyasthomas
2021-08-20 15:08:54 +05:30
parent a121445b1e
commit 7082eb27db
63 changed files with 296 additions and 305 deletions

View File

@@ -163,7 +163,7 @@ export default {
},
methods: {
showLoginSuccess() {
this.$toast.info(this.$t("auth.login_success"), {
this.$toast.success(this.$t("auth.login_success"), {
icon: "vpn_key",
})
},
@@ -222,7 +222,6 @@ export default {
return
}
this.$toast.info(`${this.$t("auth.account_exists")}`, {
icon: "vpn_key",
duration: null,
@@ -241,7 +240,7 @@ export default {
})
} else {
this.$toast.error(this.$t("error.something_went_wrong"), {
icon: "error",
icon: "error_outline",
})
}
}
@@ -305,7 +304,6 @@ export default {
return
}
this.$toast.info(`${this.$t("auth.account_exists")}`, {
icon: "vpn_key",
duration: null,
@@ -324,7 +322,7 @@ export default {
})
} else {
this.$toast.error(this.$t("error.something_went_wrong"), {
icon: "error",
icon: "error_outline",
})
}
}
@@ -346,7 +344,7 @@ export default {
.catch((e) => {
console.error(e)
this.$toast.error(e.message, {
icon: "error",
icon: "error_outline",
})
this.signingInWithEmail = false
})

View File

@@ -31,14 +31,13 @@ export default Vue.extend({
async logout() {
try {
await signOutUser()
this.$toast.info(this.$t("auth.logged_out").toString(), {
this.$toast.success(this.$t("auth.logged_out").toString(), {
icon: "vpn_key",
})
} catch (e) {
console.error(e)
this.$toast.error(this.$t("error.something_went_wrong").toString(), {
icon: "error",
icon: "error_outline",
})
}
},