mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Refactoring feature flags store functions
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user