Make size of Angular modal form specifiable
The size of Angularized modal form on Horizon is not specifiable. So create/edit action on Angular Role panel is too wide. This patch fixes the issue. Change-Id: I5bd692e7e858814095e02d1c34d5f83e70d03f0f Closes-Bug: #1743230
This commit is contained in:
parent
a17a81aece
commit
0cf4937d91
@ -50,7 +50,7 @@
|
|||||||
function open(config) {
|
function open(config) {
|
||||||
var modalConfig = {
|
var modalConfig = {
|
||||||
backdrop: 'static',
|
backdrop: 'static',
|
||||||
size: 'lg',
|
size: config.size || 'lg',
|
||||||
resolve: {
|
resolve: {
|
||||||
context: function() {
|
context: function() {
|
||||||
return {
|
return {
|
||||||
|
@ -68,7 +68,8 @@
|
|||||||
title: gettext('Create Role'),
|
title: gettext('Create Role'),
|
||||||
schema: schema,
|
schema: schema,
|
||||||
form: ['*'],
|
form: ['*'],
|
||||||
model: model
|
model: model,
|
||||||
|
size: 'sm'
|
||||||
};
|
};
|
||||||
return modalFormService.open(config).then(submit);
|
return modalFormService.open(config).then(submit);
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,8 @@
|
|||||||
title: gettext('Edit Role'),
|
title: gettext('Edit Role'),
|
||||||
schema: schema,
|
schema: schema,
|
||||||
form: ['*'],
|
form: ['*'],
|
||||||
model: response.data
|
model: response.data,
|
||||||
|
size: 'sm'
|
||||||
};
|
};
|
||||||
return modalFormService.open(config).then(service.submit);
|
return modalFormService.open(config).then(service.submit);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user