mirror of https://github.com/portainer/portainer
feat(services): default value for update image to false when updating a service (#2023)
parent
61c285bd2e
commit
863d917acc
|
@ -46,7 +46,7 @@ angular.module('portainer.app')
|
|||
applyBoxCSS(box);
|
||||
};
|
||||
|
||||
service.customPrompt = function(options) {
|
||||
service.customPrompt = function(options, optionToggled) {
|
||||
var box = bootbox.prompt({
|
||||
title: options.title,
|
||||
inputType: options.inputType,
|
||||
|
@ -56,7 +56,7 @@ angular.module('portainer.app')
|
|||
});
|
||||
applyBoxCSS(box);
|
||||
box.find('.bootbox-body').prepend('<p>' + options.message + '</p>');
|
||||
box.find('.bootbox-input-checkbox').prop('checked', true);
|
||||
box.find('.bootbox-input-checkbox').prop('checked', optionToggled);
|
||||
};
|
||||
|
||||
service.confirmAccessControlUpdate = function(callback, msg) {
|
||||
|
@ -139,7 +139,7 @@ angular.module('portainer.app')
|
|||
}
|
||||
},
|
||||
callback: callback
|
||||
});
|
||||
}, false);
|
||||
};
|
||||
|
||||
service.confirmExperimentalFeature = function(callback) {
|
||||
|
@ -174,7 +174,7 @@ angular.module('portainer.app')
|
|||
}
|
||||
},
|
||||
callback: callback
|
||||
});
|
||||
}, false);
|
||||
};
|
||||
|
||||
return service;
|
||||
|
|
Loading…
Reference in New Issue