Merge "Make size of Angular modal form specifiable"

This commit is contained in:
Zuul 2018-03-20 03:56:06 +00:00 committed by Gerrit Code Review
commit 3f93790544
3 changed files with 5 additions and 3 deletions

View File

@ -50,7 +50,7 @@
function open(config) {
var modalConfig = {
backdrop: 'static',
size: 'lg',
size: config.size || 'lg',
resolve: {
context: function() {
return {

View File

@ -68,7 +68,8 @@
title: gettext('Create Role'),
schema: schema,
form: ['*'],
model: model
model: model,
size: 'sm'
};
return modalFormService.open(config).then(submit);
}

View File

@ -70,7 +70,8 @@
title: gettext('Edit Role'),
schema: schema,
form: ['*'],
model: response.data
model: response.data,
size: 'sm'
};
return modalFormService.open(config).then(service.submit);
}