{{#if this.updating}} {{loading-spinner size="small"}} {{else}} {{#if this.responseIcon}} {{d-icon this.responseIcon}} {{/if}} {{/if}} {{d-button label="admin.wizard.api.save" action=(action "save") class="btn-primary" disabled=this.saveDisabled }} {{#if this.showRemove}} {{d-button action=(action "remove") label="admin.wizard.api.remove"}} {{/if}} {{#if this.error}}
{{this.error}}
{{/if}}
{{#if this.api.isNew}} {{i18n "admin.wizard.api.new"}} {{else}} {{this.api.title}} {{/if}}
{{#if this.api.isNew}} {{else}} {{this.api.name}} {{/if}}
{{#if this.isOauth}} {{#if this.authorizing}} {{loading-spinner size="small"}} {{else}} {{#if this.authErrorMessage}} {{this.authErrorMessage}} {{/if}} {{/if}} {{d-button label="admin.wizard.api.auth.btn" action=(action "authorize") disabled=this.authDisabled class="btn-primary" }} {{/if}}
{{i18n "admin.wizard.api.auth.label"}}
{{i18n "admin.wizard.api.auth.settings"}}
{{#if this.showRedirectUri}}
{{this.api.redirectUri}}
{{/if}}
{{combo-box value=this.api.authType content=this.authorizationTypes onChange=(action (mut this.api.authType)) options=(hash none="admin.wizard.api.auth.type_none") }}
{{#if this.isOauth}} {{#if this.threeLeggedOauth}}
{{/if}}
{{#each this.api.authParams as |param|}}
{{d-button action=(action "removeParam") actionParam=param icon="times" }}
{{/each}} {{d-button label="admin.wizard.api.auth.params.new" icon="plus" action=(action "addParam") }}
{{/if}} {{#if this.isBasicAuth}}
{{/if}}
{{#if this.isOauth}}
{{#if this.api.authorized}} {{i18n "admin.wizard.api.status.authorized"}} {{else}} {{i18n "admin.wizard.api.status.not_authorized"}} {{/if}}
{{i18n "admin.wizard.api.status.label"}}
{{#if this.threeLeggedOauth}}
{{this.api.code}}
{{/if}}
{{this.api.accessToken}}
{{#if this.threeLeggedOauth}}
{{this.api.refreshToken}}
{{/if}}
{{this.api.tokenExpiresAt}}
{{this.api.tokenRefreshAt}}
{{/if}}
{{i18n "admin.wizard.api.endpoint.label"}}
{{d-button action=(action "addEndpoint") label="admin.wizard.api.endpoint.add" icon="plus" }} {{#if this.api.endpoints}}
{{/if}}
{{i18n "admin.wizard.api.log.label"}}
{{d-button action=(action "clearLogs") class="clear-logs" label="admin.wizard.api.log.clear" }}
{{#each this.api.log as |logentry|}} {{/each}}
Datetime User Status URL Error
{{logentry.time}} {{logentry.status}} {{logentry.url}} {{logentry.error}}