From 69b84cb1341fe1147af3c1071a92993b62fc4235 Mon Sep 17 00:00:00 2001 From: Pino de Candia Date: Tue, 23 Jan 2018 22:10:38 +0000 Subject: [PATCH] Debug User Cert create modal. --- .../tatudashboard/resources/os-tatu-user/api.service.js | 1 + .../tatudashboard/resources/os-tatu-user/create.service.js | 7 +++---- .../resources/os-tatu-user/os-tatu-user.module.js | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tatudashboard/static/tatudashboard/resources/os-tatu-user/api.service.js b/tatudashboard/static/tatudashboard/resources/os-tatu-user/api.service.js index 1974427..240c8e2 100644 --- a/tatudashboard/static/tatudashboard/resources/os-tatu-user/api.service.js +++ b/tatudashboard/static/tatudashboard/resources/os-tatu-user/api.service.js @@ -80,6 +80,7 @@ .error(function() { toastService.add('error', gettext('Unable to revoke the certificate.')); }) + } /** * @name list diff --git a/tatudashboard/static/tatudashboard/resources/os-tatu-user/create.service.js b/tatudashboard/static/tatudashboard/resources/os-tatu-user/create.service.js index b0db192..9e0d295 100644 --- a/tatudashboard/static/tatudashboard/resources/os-tatu-user/create.service.js +++ b/tatudashboard/static/tatudashboard/resources/os-tatu-user/create.service.js @@ -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": { } }; } } diff --git a/tatudashboard/static/tatudashboard/resources/os-tatu-user/os-tatu-user.module.js b/tatudashboard/static/tatudashboard/resources/os-tatu-user/os-tatu-user.module.js index 2c418a0..4f65668 100644 --- a/tatudashboard/static/tatudashboard/resources/os-tatu-user/os-tatu-user.module.js +++ b/tatudashboard/static/tatudashboard/resources/os-tatu-user/os-tatu-user.module.js @@ -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')