add refreshIntervalInSecond in 1.4.2 feature flag

Signed-off-by: andy.lee <andy.lee@suse.com>
(cherry picked from commit 30dc56cad5b4c5c85ccdc663431209c397bcb86b)
This commit is contained in:
andy.lee 2025-02-27 14:38:41 +08:00 committed by Mergify
parent 7bdf40d737
commit 4b3bdf8a59
2 changed files with 8 additions and 1 deletions

View File

@ -65,6 +65,10 @@ export default {
}];
},
refreshIntervalInSecondEnabled() {
return this.$store.getters['harvester-common/getFeatureEnabled']('refreshIntervalInSecond');
},
isS3() {
return this.parseDefaultValue.type === DEFAULT_TYPE;
},
@ -146,6 +150,7 @@ export default {
@update:value="update"
/>
<UnitInput
v-if="refreshIntervalInSecondEnabled"
v-model:value="parseDefaultValue.refreshIntervalInSeconds"
:suffix="parseDefaultValue.refreshIntervalInSeconds <= 1 ? 'Second' : 'Seconds'"
:label="t('harvester.backup.refreshInterval.label')"
@ -156,6 +161,7 @@ export default {
@update:value="update"
/>
<Tip
v-if="refreshIntervalInSecondEnabled"
class="mb-20"
icon="icon icon-info"
:text="t('harvester.backup.refreshInterval.tip')"

View File

@ -42,7 +42,8 @@ const featuresV141 = [
// TODO: add v1.4.2 official release note
const featuresV142 = [
...featuresV141
...featuresV141,
'refreshIntervalInSecond'
];
// TODO: add v1.5.0 official release note