mirror of
https://github.com/EvolutionAPI/evolution-manager.git
synced 2025-12-24 05:07:44 -06:00
Add Portuguese documentation link and logout button
This commit is contained in:
@@ -34,6 +34,14 @@
|
||||
<v-btn size="small" text @click="showAbout"> Sobre esse Manager </v-btn>
|
||||
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
v-if="!!AppStore.connection.host"
|
||||
icon
|
||||
@click="logout"
|
||||
:disabled="loading"
|
||||
>
|
||||
<v-icon>mdi-logout</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="AppStore.validConnection"
|
||||
text
|
||||
@@ -131,6 +139,13 @@ export default {
|
||||
isHttps: !window.location.protocol === "https:",
|
||||
}),
|
||||
methods: {
|
||||
logout() {
|
||||
this.AppStore.logout();
|
||||
this.connection = {
|
||||
host: "",
|
||||
globalApiKey: "",
|
||||
};
|
||||
},
|
||||
showAbout() {
|
||||
this.$refs.about.open();
|
||||
},
|
||||
|
||||
@@ -74,6 +74,17 @@ export const useAppStore = defineStore('app', {
|
||||
throw e.response?.data?.response?.message || e.response || e
|
||||
}
|
||||
},
|
||||
async logout() {
|
||||
this.connection = {
|
||||
valid: false,
|
||||
host: null,
|
||||
globalApiKey: null,
|
||||
}
|
||||
this.instancesList = []
|
||||
this.instancesKeys = {}
|
||||
this.connectionsList = []
|
||||
window.localStorage.clear();
|
||||
},
|
||||
|
||||
async reconnect() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user