-
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.
feat: update notification to use hds toast component (#16519)
- Loading branch information
1 parent
7ea2bd6
commit 63204b5
Showing
59 changed files
with
428 additions
and
847 deletions.
There are no files selected for viewing
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,3 @@ | ||
```release-note:improvement | ||
ui: Update to use Hds::Toast component to show notifications | ||
``` |
46 changes: 18 additions & 28 deletions
46
ui/packages/consul-lock-sessions/app/components/consul/lock-session/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
20 changes: 6 additions & 14 deletions
20
ui/packages/consul-nspaces/app/components/consul/nspace/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 |
---|---|---|
@@ -1,16 +1,8 @@ | ||
{{#if (eq @type 'remove')}} | ||
<Notice | ||
class="notification-delete" | ||
@type="success" | ||
...attributes | ||
as |notice|> | ||
<notice.Header> | ||
<strong>Success!</strong> | ||
</notice.Header> | ||
<notice.Body> | ||
<p> | ||
Your Namespace has been marked for deletion. | ||
</p> | ||
</notice.Body> | ||
</Notice> | ||
<Hds::Toast @color='success' | ||
...attributes | ||
as |T|> | ||
<T.Title>Success!</T.Title> | ||
<T.Description>Your Namespace has been marked for deletion.</T.Description> | ||
</Hds::Toast> | ||
{{/if}} |
21 changes: 8 additions & 13 deletions
21
ui/packages/consul-partitions/app/components/consul/partition/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 |
---|---|---|
@@ -1,16 +1,11 @@ | ||
{{#if (eq @type 'remove')}} | ||
<Notice | ||
class="notification-delete" | ||
@type="success" | ||
<Hds::Toast | ||
@color='success' | ||
...attributes | ||
as |notice|> | ||
<notice.Header> | ||
<strong>Success!</strong> | ||
</notice.Header> | ||
<notice.Body> | ||
<p> | ||
Your Partition has been marked for deletion. | ||
</p> | ||
</notice.Body> | ||
</Notice> | ||
as |T|> | ||
<T.Title>Success!</T.Title> | ||
<T.Description> | ||
Your Partition has been marked for deletion. | ||
</T.Description> | ||
</Hds::Toast> | ||
{{/if}} |
21 changes: 8 additions & 13 deletions
21
ui/packages/consul-peerings/app/components/consul/peer/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 |
---|---|---|
@@ -1,16 +1,11 @@ | ||
{{#if (eq @type 'remove')}} | ||
<Notice | ||
class="notification-delete" | ||
@type="success" | ||
<Hds::Toast | ||
@color='success' | ||
...attributes | ||
as |notice|> | ||
<notice.Header> | ||
<strong>Success!</strong> | ||
</notice.Header> | ||
<notice.Body> | ||
<p> | ||
Your Peer has been marked for deletion. | ||
</p> | ||
</notice.Body> | ||
</Notice> | ||
as |T|> | ||
<T.Title>Success!</T.Title> | ||
<T.Description> | ||
Your Peer has been marked for deletion. | ||
</T.Description> | ||
</Hds::Toast> | ||
{{/if}} |
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
2 changes: 1 addition & 1 deletion
2
ui/packages/consul-ui/app/components/app/notification/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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div | ||
class="app-notification" | ||
class='app-notification' | ||
...attributes | ||
{{style | ||
(array | ||
|
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
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
Oops, something went wrong.