mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
get doc version from serverVersion
Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user