Skip to content

Commit a93a16b

Browse files
authored
[OGUI-1602] Remove option to save only for CRUs and rename to simple 'Configure' (#2735)
* removes the option to `Save` only for CRUs configuration to Consul * renames the `Save & Configure` button to `Configure`
1 parent f83cd41 commit a93a16b

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Control/public/configuration/configPage.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ const buildPage = (model, cruMapByHost) => {
7070
h('h4.pv2.w-20', 'CRUs by detector:'),
7171
savingConfigurationMessagePanel(model),
7272
h('.btn-group.w-20', {style: 'justify-content: flex-end;'}, [
73-
saveConfigurationButton(model),
7473
runRocConfigButton(model)
7574
])
7675
]),
@@ -396,17 +395,6 @@ const savingConfigurationMessagePanel = (model) =>
396395
})
397396
);
398397

399-
/**
400-
* Button to save the updated configuration
401-
* @param {Object} model
402-
* @return {vnode}
403-
*/
404-
const saveConfigurationButton = (model) =>
405-
h('button.btn.btn-default', {
406-
onclick: () => model.configuration.saveConfiguration(),
407-
disabled: model.configuration.configurationRequest.isLoading(),
408-
}, model.configuration.configurationRequest.isLoading() ? loading(1.5) : 'Save');
409-
410398
/**
411399
* Button to save the updated configuration
412400
* @param {Object} model
@@ -422,4 +410,4 @@ Are you sure you would like to continue?`)
422410
},
423411
disabled: model.configuration.configurationRequest.isLoading()
424412
|| (model.workflow.model.detectors.isSingleView() && !model.lock.isLockedByCurrentUser(model.detectors.selected)),
425-
}, model.configuration.configurationRequest.isLoading() ? loading(1.5) : 'Save & Configure');
413+
}, model.configuration.configurationRequest.isLoading() ? loading(1.5) : 'Configure');

0 commit comments

Comments
 (0)