1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 14:49:42 +02:00

Jira connector improvements and PostgresSQL schema

This commit is contained in:
HarveyKandola 2018-09-24 18:53:01 +01:00
parent a9e12f3b4c
commit d0e005f638
5 changed files with 515 additions and 8 deletions

View file

@ -9,14 +9,14 @@
//
// https://documize.com
import { empty, and } from '@ember/object/computed';
import $ from 'jquery';
import Component from '@ember/component';
import { empty, and } from '@ember/object/computed';
import { isEmpty } from '@ember/utils';
import { set } from '@ember/object';
import Component from '@ember/component';
export default Component.extend({
buttonLabel: 'Save',
titleEmpty: empty('model.title'),
firstnameEmpty: empty('model.firstname'),
lastnameEmpty: empty('model.lastname'),
@ -57,12 +57,15 @@ export default Component.extend({
this.model.allowAnonymousAccess = $("#allowAnonymousAccess").prop('checked');
this.set('buttonLabel', 'Working...');
this.get('save')().then(() => {
set(this, 'titleError', false);
set(this, 'adminFirstnameError', false);
set(this, 'adminLastnameError', false);
set(this, 'adminEmailError', false);
set(this, 'adminPasswordError', false);
this.set('buttonLabel', 'Save');
});
}
}