feat(services): default value for update image to false when updating a service (#2023)

pull/2024/head
Anthony Lapenna 2018-07-05 09:21:26 +02:00 committed by GitHub
parent 61c285bd2e
commit 863d917acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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;