Fix for Queens rc-1
This patch fixes layout for sined URL dialog and handling message list response for dialog. Also, add release notes for Queens. Change-Id: I30d6d61ab292016bd2fc142379565fa7f97ac09c
This commit is contained in:
parent
9523d7b173
commit
800e8ecea3
8
releasenotes/notes/queens-ae86cb21aebaadfd.yaml
Normal file
8
releasenotes/notes/queens-ae86cb21aebaadfd.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
fixes:
|
||||
- >
|
||||
[`bug/1647995 <https://bugs.launchpad.net/zaqar-ui/+bug/1647995>`_]
|
||||
Fixed queue create/update without metadata modification.
|
||||
When metadata is not modified in queue create/update,
|
||||
the operation had been failed.
|
||||
|
@ -46,7 +46,7 @@
|
||||
*/
|
||||
|
||||
zaqar.getMessages(ctrl.queue).then(function (response) {
|
||||
ctrl.messages = response;
|
||||
ctrl.messages = response.data;
|
||||
});
|
||||
|
||||
//////////
|
||||
|
@ -29,7 +29,7 @@
|
||||
};
|
||||
zaqar = $injector.get('horizon.app.core.openstack-service-api.zaqar');
|
||||
deferred = $q.defer();
|
||||
deferred.resolve([{id: '1'}]);
|
||||
deferred.resolve({data: [{id: '1'}]});
|
||||
spyOn(zaqar, 'getMessages').and.returnValue(deferred.promise);
|
||||
|
||||
ctrl = $controller(
|
||||
|
@ -65,42 +65,48 @@
|
||||
// form
|
||||
var form = [
|
||||
{
|
||||
type: "section",
|
||||
htmlClass: "col-sm-12",
|
||||
type: 'section',
|
||||
htmlClass: 'row',
|
||||
items: [
|
||||
{ // for result message
|
||||
type: "help",
|
||||
helpvalue: "",
|
||||
condition: true
|
||||
},
|
||||
{
|
||||
key: "paths",
|
||||
type: "checkboxes",
|
||||
title: gettext("Paths"),
|
||||
titleMap: [
|
||||
{value: "messages", name: gettext("Messages")},
|
||||
{value: "subscriptions", name: gettext("Subscriptions")},
|
||||
{value: "claims", name: gettext("Claims")}
|
||||
],
|
||||
htmlClass: "horizontal-checkboxes"
|
||||
},
|
||||
{
|
||||
key: "ttl_seconds",
|
||||
title: gettext("TTL Seconds")
|
||||
},
|
||||
{
|
||||
key: "methods",
|
||||
title: gettext("Methods"),
|
||||
type: "checkboxes",
|
||||
titleMap: [
|
||||
{value: "GET", name: gettext("GET")},
|
||||
{value: "HEAD", name: gettext("HEAD")},
|
||||
{value: "OPTIONS", name: gettext("OPTIONS")},
|
||||
{value: "POST", name: gettext("POST")},
|
||||
{value: "PUT", name: gettext("PUT")},
|
||||
{value: "DELETE", name: gettext("DELETE")}
|
||||
],
|
||||
htmlClass: "horizontal-checkboxes"
|
||||
type: "section",
|
||||
htmlClass: "col-sm-12",
|
||||
items: [
|
||||
{ // for result message
|
||||
type: "help",
|
||||
helpvalue: "",
|
||||
condition: true
|
||||
},
|
||||
{
|
||||
key: "paths",
|
||||
type: "checkboxes",
|
||||
title: gettext("Paths"),
|
||||
titleMap: [
|
||||
{value: "messages", name: gettext("Messages")},
|
||||
{value: "subscriptions", name: gettext("Subscriptions")},
|
||||
{value: "claims", name: gettext("Claims")}
|
||||
],
|
||||
htmlClass: "horizontal-checkboxes"
|
||||
},
|
||||
{
|
||||
key: "ttl_seconds",
|
||||
title: gettext("TTL Seconds")
|
||||
},
|
||||
{
|
||||
key: "methods",
|
||||
title: gettext("Methods"),
|
||||
type: "checkboxes",
|
||||
titleMap: [
|
||||
{value: "GET", name: gettext("GET")},
|
||||
{value: "HEAD", name: gettext("HEAD")},
|
||||
{value: "OPTIONS", name: gettext("OPTIONS")},
|
||||
{value: "POST", name: gettext("POST")},
|
||||
{value: "PUT", name: gettext("PUT")},
|
||||
{value: "DELETE", name: gettext("DELETE")}
|
||||
],
|
||||
htmlClass: "horizontal-checkboxes"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -172,11 +178,11 @@
|
||||
config.form = angular.copy(form);
|
||||
|
||||
// for result message
|
||||
config.form[0].items[0].helpvalue = "<div class='alert alert-success'>" +
|
||||
config.form[0].items[0].items[0].helpvalue = "<div class='alert alert-success'>" +
|
||||
interpolate(message.success,
|
||||
[name, response.data.expires, response.data.signature]
|
||||
) + "</div>";
|
||||
config.form[0].items[0].condition = false;
|
||||
config.form[0].items[0].items[0].condition = false;
|
||||
|
||||
// display new dialog
|
||||
waitSpinner.hideModalSpinner();
|
||||
|
Loading…
Reference in New Issue
Block a user