File tree 2 files changed +24
-7
lines changed
addon/components/hds/alert
tests/dummy/app/templates/components
2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 1
1
<div class ={{ this.classNames }} ...attributes role =" alert" >
2
- {{ #if @icon }}
2
+ {{ #if ( or @icon @ color ) }}
3
3
<div class =" hds-alert__icon" >
4
- <FlightIcon @name ={{ this.icon }} @size =" 24" @isInlineBlock ={{ false }} />
4
+ {{ #if @icon }}
5
+ <FlightIcon @name ={{ @icon }} @size =" 24" @isInlineBlock ={{ false }} />
6
+ {{ else if (or (eq @color "neutral") (eq @color "highlight"))}}
7
+ <FlightIcon @name =" info" @size =" 24" @isInlineBlock ={{ false }} />
8
+ {{ else if (eq @color "success")}}
9
+ <FlightIcon @name =" check-circle" @size =" 24" @isInlineBlock ={{ false }} />
10
+ {{ else if (eq @color "warning")}}
11
+ <FlightIcon @name =" alert-triangle" @size =" 24" @isInlineBlock ={{ false }} />
12
+ {{ else if (eq @color "critical")}}
13
+ <FlightIcon @name =" alert-octagon" @size =" 24" @isInlineBlock ={{ false }} />
14
+ {{ /if }}
5
15
</div >
6
16
{{ /if }}
7
17
Original file line number Diff line number Diff line change 142
142
143
143
<Hds::Alert
144
144
@color =" neutral"
145
- @icon =" alert-triangle"
146
145
@title =" Neutral! Alert w/title & description"
147
146
@description =" Your Intention settings are currently set to default allow. This
148
147
means that this view will show connections to every service in your
154
153
155
154
<Hds::Alert
156
155
@color =" highlight"
157
- @icon =" alert-triangle"
158
156
@title =" Highlight! Alert w/title & description"
159
157
@description =" Your Intention settings are currently set to default allow. This
160
158
means that this view will show connections to every service in your
166
164
167
165
<Hds::Alert
168
166
@color =" success"
169
- @icon =" alert-triangle"
170
167
@title =" Success! Alert w/title & description"
171
168
@description =" Your Intention settings are currently set to default allow. This
172
169
means that this view will show connections to every service in your
178
175
179
176
<Hds::Alert
180
177
@color =" warning"
181
- @icon =" alert-triangle"
182
178
@title =" Warning! Alert w/title & description"
183
179
@description =" Your Intention settings are currently set to default allow. This
184
180
means that this view will show connections to every service in your
190
186
191
187
<Hds::Alert
192
188
@color =" critical"
193
- @icon =" alert-triangle"
194
189
@title =" Critical! Alert w/title & description"
195
190
@description =" Your Intention settings are currently set to default allow. This
196
191
means that this view will show connections to every service in your
200
195
/>
201
196
<br />
202
197
198
+ <Hds::Alert
199
+ @color =" critical"
200
+ @icon =" meh"
201
+ @title =" Critical! With special icon"
202
+ @description =" Your Intention settings are currently set to default allow. This
203
+ means that this view will show connections to every service in your
204
+ cluster. We recommend changing your Intention settings to default deny and
205
+ creating specific Intentions for upstream and downstream services for this
206
+ view to be useful."
207
+ />
208
+ <br />
209
+
203
210
Other variations:
204
211
205
212
<Hds::Alert @color =" critical" @icon =" alert-triangle" @description =" Description only please" />
You can’t perform that action at this time.
0 commit comments