Commit e40ecc8
committed
Notifications: Only show "Silence" button for notification Toasts
Non-notification toasts which are of type Warning or Error cannot
be silenced as they cannot cause an alarm, since only notification
backed toasts can cause alarms.
This commit ensures that the "Silence" button will only be shown
for notification-backed warning/error toasts, and that the normal
"X" (dismiss/close) button is shown for non-notification-backed
toasts.
Contributes to issue #26751 parent 074c3c9 commit e40ecc8
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
0 commit comments