ui_migration refactor(store) use pinia stores in components

This commit is contained in:
Antonio Anaya 2026-04-21 23:29:24 -06:00
parent 694a5a690f
commit 3a5a7488dd
25 changed files with 284 additions and 273 deletions

View file

@ -14,6 +14,9 @@
</template>
<script>
import { mapState } from "pinia";
import { useSettingsStore } from "@/stores/settings.js";
export default {
name: "TabIcon",
@ -52,6 +55,7 @@ export default {
emits: ["set-tab"],
computed: {
...mapState(useSettingsStore, ["ready"]),
computedTitle: function () {
if (this.title !== undefined) {
return this.title;
@ -74,7 +78,7 @@ export default {
classObject: function () {
return {
"tabicon-active": this.currentTab == this.tabID,
"uk-disabled": this.requireConnection && !this.$store.getters.ready,
"uk-disabled": this.requireConnection && !this.ready,
};
},
},