-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: Fixup notifications for tokens using and topology intention saving (
- Loading branch information
1 parent
44761e6
commit ef792c8
Showing
4 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
ui/packages/consul-ui/app/components/consul/intention/notifications/index.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{#if (eq @type 'create')}} | ||
{{#if (eq @status 'success') }} | ||
Your intention has been added. | ||
{{else}} | ||
There was an error adding your intention. | ||
{{/if}} | ||
{{else if (eq @type 'update') }} | ||
{{#if (eq @status 'success') }} | ||
Your intention has been saved. | ||
{{else}} | ||
There was an error saving your intention. | ||
{{/if}} | ||
{{ else if (eq @type 'delete')}} | ||
{{#if (eq @status 'success') }} | ||
Your intention was deleted. | ||
{{else}} | ||
There was an error deleting your intention. | ||
{{/if}} | ||
{{/if}} | ||
{{#let @error.errors.firstObject as |error|}} | ||
{{#if error.detail }} | ||
<br />{{concat '(' (if error.status (concat error.status ': ')) error.detail ')'}} | ||
{{/if}} | ||
{{/let}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters