mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +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,
|
||||
noBoards: false,
|
||||
appKey: "",
|
||||
trelloConfigured: computed('config.board', function () {
|
||||
return is.not.empty(this.get('appKey'));
|
||||
}),
|
||||
|
||||
boardStyle: computed('config.board', function () {
|
||||
let board = this.get('config.board');
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="col-12 mb-5">
|
||||
{{#if session.isAdmin}}
|
||||
{{#link-to 'customize.integrations' class="btn btn-outline-secondary font-weight-bold"}}
|
||||
Configire Jira Connector
|
||||
Configure Jira Connector
|
||||
{{/link-to}}
|
||||
{{else}}
|
||||
{{#unless authenticated}}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
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')}}
|
||||
|
||||
{{#if trelloConfigured}}
|
||||
{{#if authenticated}}
|
||||
{{#if noBoards}}
|
||||
<p>You have no team boards to share - personal boards are never shown</p>
|
||||
|
@ -31,5 +32,14 @@
|
|||
{{else}}
|
||||
<div class="btn btn-primary" {{action 'auth'}}>Authenticate</div>
|
||||
{{/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}}
|
Loading…
Add table
Add a link
Reference in a new issue