Refactoring feature flags store functions

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 11:50:44 +01:00
parent 8ba4dbd9e8
commit 021a64a5ec
10 changed files with 39 additions and 28 deletions
+3 -1
View File
@@ -21,7 +21,9 @@ export default {
},
upgradeLink() {
return docLink(DOC.UPGRADE_URL, this.$store.getters);
const version = this.$rootGetters['harvester-common/getServerVersion']();
return docLink(DOC.UPGRADE_URL, version);
}
},
};
@@ -88,7 +88,9 @@ export default {
computed: {
storageNetworkExampleLink() {
return docLink(DOC.STORAGE_NETWORK_EXAMPLE, this.$store.getters);
const version = this.$rootGetters['harvester-common/getServerVersion']();
return docLink(DOC.STORAGE_NETWORK_EXAMPLE, version);
},
clusterNetworkOptions() {
const inStore = this.$store.getters['currentProduct'].inStore;