New component version of the forbidden-message partial

This commit is contained in:
Michael Lange 2020-06-15 18:37:29 -07:00
parent 58df659fdb
commit 129ccec82c
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,5 @@
import Component from '@ember/component';
import { tagName } from '@ember-decorators/component';
@tagName('')
export default class ForbiddenMessage extends Component {}

View file

@ -0,0 +1,22 @@
<div data-test-error class="empty-message">
<h3 data-test-error-title class="empty-message-headline">Not Authorized</h3>
<p data-test-error-message class="empty-message-body">
{{#if token.secret}}
Your <LinkTo @route="settings.tokens">ACL token</LinkTo> does not provide the
{{#if permission}}
<code>{{permission}}</code>
{{else}}
required
{{/if}}
permission. Contact your administrator if this is an error.
{{else}}
Provide an <LinkTo @route="settings.tokens">ACL token</LinkTo> with the
{{#if permission}}
<code>{{permission}}</code>
{{else}}
requisite
{{/if}}
permission to view this.
{{/if}}
</p>
</div>