mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +00:00
Make "confirm" buttons a user-configurable option. (#3313)
* Make "confirm" buttons a user-configurable option. Add a new setting to enable the confirm button Fixes #3069 * Add seperator
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
inventreeFormDataUpload,
|
||||
inventreeGet,
|
||||
inventreePut,
|
||||
global_settings,
|
||||
modalEnable,
|
||||
modalShowSubmitButton,
|
||||
renderBuild,
|
||||
@ -575,7 +576,7 @@ function constructFormBody(fields, options) {
|
||||
$(modal).find('#modal-footer-buttons').html('');
|
||||
|
||||
// Insert "confirm" button (if required)
|
||||
if (options.confirm) {
|
||||
if (options.confirm && global_settings.INVENTREE_REQUIRE_CONFIRM) {
|
||||
insertConfirmButton(options);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user