Merge pull request #171 from a110605/feature_flag_refresh

Add refreshIntervalInSecond in 1.4.2 feature flag
This commit is contained in:
Andy Lee 2025-02-27 17:23:56 +08:00 committed by GitHub
commit ff4a865c55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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() { 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')"

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