1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +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');
});
}
}

View file

@ -27,6 +27,6 @@
{{input id="adminPassword" type="password" value=model.password class=(if hasEmptyPasswordError 'form-control is-invalid' 'form-control')}}
<small class="form-text text-muted">Something you can remember without writing it down</small>
</div>
<button type="submit" class="btn btn-success mt-5" {{action 'save'}}>Setup</button>
<button type="submit" class="btn btn-success mt-5" {{action 'save'}}>{{buttonLabel}}</button>
</form>
</div>

View file

@ -32,6 +32,8 @@
{{{issuesGrid}}}
</div>
</div>
{{else}}
<p class="text-danger">Jira connector not authenticated</p>
{{/if}}
{{/section/base-editor}}