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:
Shu Muto 2018-01-24 19:09:32 +09:00
parent a17a81aece
commit 0cf4937d91
3 changed files with 5 additions and 3 deletions

View File

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

View File

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

View File

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