Merge "Make size of Angular modal form specifiable"
This commit is contained in:
commit
3f93790544
|
@ -50,7 +50,7 @@
|
|||
function open(config) {
|
||||
var modalConfig = {
|
||||
backdrop: 'static',
|
||||
size: 'lg',
|
||||
size: config.size || 'lg',
|
||||
resolve: {
|
||||
context: function() {
|
||||
return {
|
||||
|
|
|
@ -68,7 +68,8 @@
|
|||
title: gettext('Create Role'),
|
||||
schema: schema,
|
||||
form: ['*'],
|
||||
model: model
|
||||
model: model,
|
||||
size: 'sm'
|
||||
};
|
||||
return modalFormService.open(config).then(submit);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue