reorder fields and make redirect_uri field not required on app form

This commit is contained in:
John Mitchell 2018-05-08 17:09:52 -04:00
parent 8e75cabcfa
commit ffdf406300
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94
3 changed files with 3 additions and 5 deletions

View File

@ -46,7 +46,6 @@ function AddApplicationsController (models, $state, strings) {
vm.form.name.required = true;
vm.form.organization.required = true;
vm.form.redirect_uris.required = true;
delete vm.form.name.help_text;

View File

@ -14,9 +14,9 @@
<at-input-text col="4" tab="2" state="vm.form.description"></at-input-text>
<at-input-lookup col="4" tab="3" state="vm.form.organization"></at-input-lookup>
<at-divider></at-divider>
<at-input-text col="4" tab="4" state="vm.form.redirect_uris"></at-input-text>
<at-input-select col="4" tab="5" state="vm.form.client_type"></at-input-select>
<at-input-select col="4" tab="6" state="vm.form.authorization_grant_type"></at-input-select>
<at-input-select col="4" tab="4" state="vm.form.authorization_grant_type"></at-input-select>
<at-input-text col="4" tab="5" state="vm.form.redirect_uris"></at-input-text>
<at-input-select col="4" tab="6" state="vm.form.client_type"></at-input-select>
<at-action-group col="12" pos="right">
<at-form-action type="cancel" to="applications"></at-form-action>

View File

@ -53,7 +53,6 @@ function EditApplicationsController (models, $state, strings, $scope) {
vm.form.disabled = !isEditable;
vm.form.name.required = true;
vm.form.redirect_uris.required = true;
const isOrgAdmin = _.some(me.get('related.admin_of_organizations.results'), (org) => org.id === organization.get('id'));
const isSuperuser = me.get('is_superuser');