consul/ui/packages/consul-ui/app/components/app-error
John Cowen 8263879e6f
ui: Restrict the viewing/editing of certain UI elements based on the users ACLs (#9687)
This commit use the internal authorize endpoint along wiht ember-can to further restrict user access to certain UI features and navigational elements depending on the users ACL token
2021-02-19 16:42:16 +00:00
..
README.stories.mdx ui: Move AppError and ErrorState to glimmer components (#9095) 2020-11-06 09:24:17 +00:00
index.hbs ui: Restrict the viewing/editing of certain UI elements based on the users ACLs (#9687) 2021-02-19 16:42:16 +00:00

README.stories.mdx

import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { hbs } from 'ember-cli-htmlbars';

<Meta title="Components/AppError" />

# AppError

<Canvas>
  <Story
    name="Basic"
    argTypes={{
      status: {
        defaultValue: '404',
        control: {
          type: 'select',
          options: [
            '404',
            '403',
            '500'
          ]
        }
      }
    }}
  >{(args) => ({
    template: hbs`<AppError @error={{hash status=status}} />`,
    context: args
  })}
  </Story>
</Canvas>