mirror of
https://github.com/documize/community.git
synced 2025-07-22 14:49:42 +02:00
Provide UI to configure Trello connector
This commit is contained in:
parent
7206f721f4
commit
9987d29b7b
4 changed files with 715 additions and 701 deletions
1350
embed/bindata.go
1350
embed/bindata.go
File diff suppressed because one or more lines are too long
|
@ -27,6 +27,10 @@ export default Component.extend(SectionMixin, NotifierMixin, TooltipMixin, {
|
||||||
boards: null,
|
boards: null,
|
||||||
noBoards: false,
|
noBoards: false,
|
||||||
appKey: "",
|
appKey: "",
|
||||||
|
trelloConfigured: computed('config.board', function () {
|
||||||
|
return is.not.empty(this.get('appKey'));
|
||||||
|
}),
|
||||||
|
|
||||||
boardStyle: computed('config.board', function () {
|
boardStyle: computed('config.board', function () {
|
||||||
let board = this.get('config.board');
|
let board = this.get('config.board');
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="col-12 mb-5">
|
<div class="col-12 mb-5">
|
||||||
{{#if session.isAdmin}}
|
{{#if session.isAdmin}}
|
||||||
{{#link-to 'customize.integrations' class="btn btn-outline-secondary font-weight-bold"}}
|
{{#link-to 'customize.integrations' class="btn btn-outline-secondary font-weight-bold"}}
|
||||||
Configire Jira Connector
|
Configure Jira Connector
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#unless authenticated}}
|
{{#unless authenticated}}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
tip="Trello is the visual way to manage your projects and organize anything (https://trello.com)"
|
tip="Trello is the visual way to manage your projects and organize anything (https://trello.com)"
|
||||||
isDirty=(action 'isDirty') onCancel=(action 'onCancel') onAction=(action 'onAction')}}
|
isDirty=(action 'isDirty') onCancel=(action 'onCancel') onAction=(action 'onAction')}}
|
||||||
|
|
||||||
|
{{#if trelloConfigured}}
|
||||||
{{#if authenticated}}
|
{{#if authenticated}}
|
||||||
{{#if noBoards}}
|
{{#if noBoards}}
|
||||||
<p>You have no team boards to share - personal boards are never shown</p>
|
<p>You have no team boards to share - personal boards are never shown</p>
|
||||||
|
@ -31,5 +32,14 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="btn btn-primary" {{action 'auth'}}>Authenticate</div>
|
<div class="btn btn-primary" {{action 'auth'}}>Authenticate</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{else}}
|
||||||
|
{{#if session.isGlobalAdmin}}
|
||||||
|
{{#link-to 'customize.integrations' class="btn btn-outline-secondary font-weight-bold"}}
|
||||||
|
Configure Trello Connector
|
||||||
|
{{/link-to}}
|
||||||
|
{{else}}
|
||||||
|
<p>Your Documize administrator needs to configure Trello before usage.</p>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{/section/base-editor}}
|
{{/section/base-editor}}
|
Loading…
Add table
Add a link
Reference in a new issue