"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "openstack_dashboard/static/app/core/images/steps/create-image/create-image.controller.js" between
horizon-22.1.0.tar.gz and horizon-23.0.0.tar.gz

About: OpenStack Horizon (Optional Service: Dashboard) provides a web-based self-service portal to interact with underlying OpenStack services, such as launching an instance, assigning IP addresses and configuring access controls.
The "Zed" series (latest release).

create-image.controller.js  (horizon-22.1.0):create-image.controller.js  (horizon-23.0.0)
skipping to change at line 149 skipping to change at line 149
ctrl.image.visibility = "private"; ctrl.image.visibility = "private";
} }
} }
function isLocalFileUpload() { function isLocalFileUpload() {
var type = ctrl.image.source_type; var type = ctrl.image.source_type;
return (type === 'file-legacy' || type === 'file-direct'); return (type === 'file-legacy' || type === 'file-direct');
} }
function init() { function init() {
glance.getImages({paginate: false}).success(onGetImages); glance.getImages({paginate: false}).then(onGetImages);
policyAPI.ifAllowed({rules: [['image', 'communitize_image']]}).then( policyAPI.ifAllowed({rules: [['image', 'communitize_image']]}).then(
function () { function () {
ctrl.imageVisibilityOptions.push({ label: gettext('Community'), value: 'community' }); ctrl.imageVisibilityOptions.push({ label: gettext('Community'), value: 'community' });
} }
); );
policyAPI.ifAllowed({rules: [['image', 'publicize_image']]}).then( policyAPI.ifAllowed({rules: [['image', 'publicize_image']]}).then(
function () { function () {
ctrl.imageVisibilityOptions.push({ label: gettext('Public'), value: 'p ublic' }); ctrl.imageVisibilityOptions.push({ label: gettext('Public'), value: 'p ublic' });
} }
); );
} }
function onGetImages(response) { function onGetImages(response) {
ctrl.kernelImages = response.items.filter(function(elem) { ctrl.kernelImages = response.data.items.filter(function(elem) {
return elem.disk_format === 'aki'; return elem.disk_format === 'aki';
}); });
ctrl.ramdiskImages = response.items.filter(function(elem) { ctrl.ramdiskImages = response.data.items.filter(function(elem) {
return elem.disk_format === 'ari'; return elem.disk_format === 'ari';
}); });
} }
function setFormats() { function setFormats() {
ctrl.image.container_format = 'bare'; ctrl.image.container_format = 'bare';
if (['aki', 'ami', 'ari'].indexOf(ctrl.image_format) > -1) { if (['aki', 'ami', 'ari'].indexOf(ctrl.image_format) > -1) {
ctrl.image.container_format = ctrl.image_format; ctrl.image.container_format = ctrl.image_format;
} }
ctrl.image.disk_format = ctrl.image_format; ctrl.image.disk_format = ctrl.image_format;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)