get doc version from serverVersion

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee
2024-11-12 11:50:36 +01:00
committed by Francesco Torchia
parent 541fee0f39
commit ebc14751e7
7 changed files with 30 additions and 21 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
<script>
import { Banner } from '@components/Banner';
import { DOC_LINKS } from '../config/doc-links';
import { DOC } from '../config/doc-links';
import { docLink } from '../utils/feature-flags';
export default {
name: 'HarvesterUpgradeInfo',
@@ -20,7 +21,7 @@ export default {
},
upgradeLink() {
return DOC_LINKS.UPGRADE_URL;
return docLink(DOC.UPGRADE_URL, this.$store.getters);
}
},
};
@@ -10,7 +10,8 @@ import Tip from '@shell/components/Tip';
import { allHash } from '@shell/utils/promise';
import { NODE } from '@shell/config/types';
import { HCI } from '../../types';
import { DOC_LINKS } from '../../config/doc-links';
import { DOC } from '../../config/doc-links';
import { docLink } from '../../utils/feature-flags';
export default {
name: 'HarvesterEditStorageNetwork',
@@ -87,7 +88,7 @@ export default {
computed: {
storageNetworkExampleLink() {
return DOC_LINKS.STORAGE_NETWORK_EXAMPLE;
return docLink(DOC.STORAGE_NETWORK_EXAMPLE, this.$store.getters);
},
clusterNetworkOptions() {
const inStore = this.$store.getters['currentProduct'].inStore;