mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 21:33:18 +01:00
20 lines
449 B
JavaScript
20 lines
449 B
JavaScript
import { mapGetters } from "vuex";
|
|
export default {
|
|
computed: {
|
|
...mapGetters(["allContainersById"]),
|
|
container() {
|
|
return this.allContainersById[this.id];
|
|
},
|
|
},
|
|
watch: {
|
|
["container.state"](newValue, oldValue) {
|
|
if (newValue == "running" && newValue != oldValue) {
|
|
this.onContainerStateChange(newValue, oldValue);
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
onContainerStateChange(newValue, oldValue) {},
|
|
},
|
|
};
|