Skip to content

Commit

Permalink
[OGUI-1602] Remove option to save only for CRUs and rename to simple …
Browse files Browse the repository at this point in the history
…'Configure' (#2735)

* removes the option to `Save` only for CRUs configuration to Consul
* renames the `Save & Configure` button to `Configure`
  • Loading branch information
graduta authored Jan 29, 2025
1 parent f83cd41 commit a93a16b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Control/public/configuration/configPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const buildPage = (model, cruMapByHost) => {
h('h4.pv2.w-20', 'CRUs by detector:'),
savingConfigurationMessagePanel(model),
h('.btn-group.w-20', {style: 'justify-content: flex-end;'}, [
saveConfigurationButton(model),
runRocConfigButton(model)
])
]),
Expand Down Expand Up @@ -396,17 +395,6 @@ const savingConfigurationMessagePanel = (model) =>
})
);

/**
* Button to save the updated configuration
* @param {Object} model
* @return {vnode}
*/
const saveConfigurationButton = (model) =>
h('button.btn.btn-default', {
onclick: () => model.configuration.saveConfiguration(),
disabled: model.configuration.configurationRequest.isLoading(),
}, model.configuration.configurationRequest.isLoading() ? loading(1.5) : 'Save');

/**
* Button to save the updated configuration
* @param {Object} model
Expand All @@ -422,4 +410,4 @@ Are you sure you would like to continue?`)
},
disabled: model.configuration.configurationRequest.isLoading()
|| (model.workflow.model.detectors.isSingleView() && !model.lock.isLockedByCurrentUser(model.detectors.selected)),
}, model.configuration.configurationRequest.isLoading() ? loading(1.5) : 'Save & Configure');
}, model.configuration.configurationRequest.isLoading() ? loading(1.5) : 'Configure');

0 comments on commit a93a16b

Please sign in to comment.