Skip to content

Commit

Permalink
feat(MainPanel): show current connection url
Browse files Browse the repository at this point in the history
closes #66

Signed-off-by: Lukas Mertens <git@lukas-mertens.de>

commit-id:293e0e90
  • Loading branch information
lukas-mertens committed Mar 18, 2024
1 parent 43976ed commit 0686d76
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/pages/MainPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
<v-list-item to="config" append-icon="mdi-cog" link>
<v-list-item-title>Config</v-list-item-title>
</v-list-item>
<v-list-item @click="changeInstance()" append-icon="mdi-image-filter-hdr" link>
<v-list-item-title>Change EVerest instance</v-list-item-title>
</v-list-item>
<v-tooltip location="end">
<template v-slot:activator="{ props }">
<v-list-item @click="changeInstance()" append-icon="mdi-image-filter-hdr" link v-bind="props">
<v-list-item-title>Change EVerest instance</v-list-item-title>
</v-list-item>
</template>
<span>Connected to {{ connectionUrl }}</span>
</v-tooltip>
</v-list>
<v-list-item class="bottom-list d-flex flex-column">
<span>Version {{ version }}</span>
Expand Down Expand Up @@ -86,6 +91,9 @@ export default defineComponent({
show_snackbar() {
return mainStore.snackbar_message !== undefined;
},
connectionUrl() {
return evbc?._cxn?._url ?? "nothing";
}
},
methods: {
close_snackbar() {
Expand Down

0 comments on commit 0686d76

Please sign in to comment.