add refreshIntervalInSecond in 1.4.2 feature flag

Signed-off-by: andy.lee <andy.lee@suse.com>
(cherry picked from commit 30dc56cad5)
This commit is contained in:
andy.lee
2025-02-27 09:24:58 +00:00
committed by Mergify
parent 7bdf40d737
commit 4b3bdf8a59
2 changed files with 8 additions and 1 deletions
@@ -65,6 +65,10 @@ export default {
}]; }];
}, },
refreshIntervalInSecondEnabled() {
return this.$store.getters['harvester-common/getFeatureEnabled']('refreshIntervalInSecond');
},
isS3() { isS3() {
return this.parseDefaultValue.type === DEFAULT_TYPE; return this.parseDefaultValue.type === DEFAULT_TYPE;
}, },
@@ -146,6 +150,7 @@ export default {
@update:value="update" @update:value="update"
/> />
<UnitInput <UnitInput
v-if="refreshIntervalInSecondEnabled"
v-model:value="parseDefaultValue.refreshIntervalInSeconds" v-model:value="parseDefaultValue.refreshIntervalInSeconds"
:suffix="parseDefaultValue.refreshIntervalInSeconds <= 1 ? 'Second' : 'Seconds'" :suffix="parseDefaultValue.refreshIntervalInSeconds <= 1 ? 'Second' : 'Seconds'"
:label="t('harvester.backup.refreshInterval.label')" :label="t('harvester.backup.refreshInterval.label')"
@@ -156,6 +161,7 @@ export default {
@update:value="update" @update:value="update"
/> />
<Tip <Tip
v-if="refreshIntervalInSecondEnabled"
class="mb-20" class="mb-20"
icon="icon icon-info" icon="icon icon-info"
:text="t('harvester.backup.refreshInterval.tip')" :text="t('harvester.backup.refreshInterval.tip')"
+2 -1
View File
@@ -42,7 +42,8 @@ const featuresV141 = [
// TODO: add v1.4.2 official release note // TODO: add v1.4.2 official release note
const featuresV142 = [ const featuresV142 = [
...featuresV141 ...featuresV141,
'refreshIntervalInSecond'
]; ];
// TODO: add v1.5.0 official release note // TODO: add v1.5.0 official release note