Debug User Cert create modal.

This commit is contained in:
Pino de Candia 2018-01-23 22:10:38 +00:00
parent c4d208e457
commit 69b84cb134
3 changed files with 6 additions and 5 deletions

View File

@ -80,6 +80,7 @@
.error(function() {
toastService.add('error', gettext('Unable to revoke the certificate.'));
})
}
/**
* @name list

View File

@ -24,7 +24,6 @@
action.$inject = [
'$q',
'tatudashboard.resources.os-tatu-user.actions.common-forms',
'tatudashboard.resources.os-tatu-user.api',
'tatudashboard.resources.os-tatu-user.resourceType',
'horizon.app.core.openstack-service-api.policy',
@ -42,7 +41,6 @@
* Brings up the Create User modal.
*/
function action($q,
forms,
api,
resourceTypeName,
policy,
@ -79,7 +77,7 @@
}
function perform() {
var formConfig = forms.getCreateFormConfig();
var formConfig = getCreateFormConfig();
formConfig.title = title;
return schemaFormModalService.open(formConfig).then(onSubmit, onCancel);
}
@ -134,7 +132,8 @@
"description": gettext("The user's SSH public key."),
"required": true
}
]
],
"model": { }
};
}
}

View File

@ -27,7 +27,8 @@
*/
angular
.module('tatudashboard.resources.os-tatu-user', [
'ngRoute'
'ngRoute',
'tatudashboard.resources.os-tatu-user.actions'
])
.constant(
'tatudashboard.resources.os-tatu-user.resourceType', 'OS::Tatu::User')