mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Eslint prefer-const (#17864)
* adds prefer-const to eslint config and runs fixer * reverts unintended change
This commit is contained in:
@@ -16,13 +16,13 @@ export default Component.extend({
|
||||
},
|
||||
|
||||
maybeHideFeatures() {
|
||||
let features = this.allFeatures;
|
||||
const features = this.allFeatures;
|
||||
features.forEach((feat) => {
|
||||
feat.disabled = this.doesNotHavePermission(feat.requiredPermissions);
|
||||
});
|
||||
|
||||
if (this.showReplication === false) {
|
||||
let feature = this.allFeatures.findBy('key', 'replication');
|
||||
const feature = this.allFeatures.findBy('key', 'replication');
|
||||
feature.show = false;
|
||||
}
|
||||
},
|
||||
@@ -41,7 +41,7 @@ export default Component.extend({
|
||||
|
||||
estimatedTime: computed('selectedFeatures', function () {
|
||||
let time = 0;
|
||||
for (let feature of Object.keys(FEATURE_MACHINE_TIME)) {
|
||||
for (const feature of Object.keys(FEATURE_MACHINE_TIME)) {
|
||||
if (this.selectedFeatures.includes(feature)) {
|
||||
time += FEATURE_MACHINE_TIME[feature];
|
||||
}
|
||||
@@ -137,7 +137,7 @@ export default Component.extend({
|
||||
|
||||
actions: {
|
||||
saveFeatures() {
|
||||
let wizard = this.wizard;
|
||||
const wizard = this.wizard;
|
||||
wizard.saveFeatures(this.selectedFeatures);
|
||||
wizard.transitionTutorialMachine('active.select', 'CONTINUE');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user