"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "openstack_dashboard/dashboards/project/static/dashboard/project/containers/containers.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).

containers.controller.js  (horizon-22.1.0):containers.controller.js  (horizon-23.0.0)
skipping to change at line 100 skipping to change at line 100
ctrl.selectContainer = selectContainer; ctrl.selectContainer = selectContainer;
ctrl.setDefaultPolicyAndOptions = setDefaultPolicyAndOptions; ctrl.setDefaultPolicyAndOptions = setDefaultPolicyAndOptions;
////////// //////////
function checkContainerNameConflict(containerName) { function checkContainerNameConflict(containerName) {
if (!containerName) { if (!containerName) {
// consider empty model valid // consider empty model valid
return $q.when(); return $q.when();
} }
var def = $q.defer();
// reverse the sense here - successful lookup == error so we reject the // reverse the sense here - successful lookup == error so we reject the
// name if we find it in swift // name if we find it in swift
swiftAPI.getContainer(containerName, true).then(def.reject, def.resolve); return swiftAPI.getContainer(containerName, true).then(function onSuccess(
return def.promise; response) {
return $q.reject(response);
}, function onError() { return true; });
} }
function selectContainer(container) { function selectContainer(container) {
if (!ctrl.model.container || container.name !== ctrl.model.container.name) { if (!ctrl.model.container || container.name !== ctrl.model.container.name) {
ctrl.filterEventTrigeredBySearchBar = false; ctrl.filterEventTrigeredBySearchBar = false;
} }
ctrl.model.container = container; ctrl.model.container = container;
$location.path(ctrl.containerRoute + container.name); $location.path(ctrl.containerRoute + container.name);
return ctrl.model.fetchContainerDetail(container); return ctrl.model.fetchContainerDetail(container);
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 lines changed or added

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