1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

Work in progress to show live stats (#671)

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
This commit is contained in:
Amir Raminfar
2020-09-06 15:32:27 -07:00
committed by GitHub
parent b7af2b7826
commit 220722deaa
28 changed files with 361 additions and 128 deletions

View File

@@ -15,7 +15,6 @@
<pane v-for="other in activeContainers" :key="other.id" v-if="!isMobile">
<log-container
:id="other.id"
:title="other.name"
show-title
scrollable
closable
@@ -72,10 +71,6 @@ export default {
titleTemplate: "%s - Dozzle",
};
},
async created() {
await this.fetchContainerList();
this.title = `${this.visibleContainers.length} containers`;
},
mounted() {
if (this.hasSmallerScrollbars) {
document.documentElement.classList.add("has-custom-scrollbars");
@@ -100,10 +95,13 @@ export default {
document.documentElement.removeAttribute("data-theme");
}
},
visibleContainers() {
this.title = `${this.visibleContainers.length} containers`;
},
},
computed: {
...mapState(["activeContainers", "isMobile", "settings"]),
...mapGetters(["visibleContainers"]),
...mapState(["isMobile", "settings"]),
...mapGetters(["visibleContainers", "activeContainers"]),
hasSmallerScrollbars() {
return this.settings.smallerScrollbars;
},
@@ -113,7 +111,6 @@ export default {
},
methods: {
...mapActions({
fetchContainerList: "FETCH_CONTAINERS",
removeActiveContainer: "REMOVE_ACTIVE_CONTAINER",
updateSetting: "UPDATE_SETTING",
}),