File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
plus/patchDetails/components Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,29 @@ export class InspectPatch extends GlElement {
262
262
.user-selection__check:not(.is-active) {
263
263
opacity: 0;
264
264
}
265
+
266
+ .alert {
267
+ display: flex;
268
+ flex-direction: row;
269
+ align-items: center;
270
+ padding: 0.8rem 1.2rem;
271
+ line-height: 1.2;
272
+ background-color: var(--color-alert-errorBackground);
273
+ border-left: 0.3rem solid var(--color-alert-errorBorder);
274
+ color: var(--color-alert-foreground);
275
+ }
276
+
277
+ .alert code-icon {
278
+ margin-right: 0.4rem;
279
+ vertical-align: baseline;
280
+ }
281
+
282
+ .alert__content {
283
+ font-size: 1.2rem;
284
+ line-height: 1.2;
285
+ text-align: left;
286
+ margin: 0;
287
+ }
265
288
` ,
266
289
] ;
267
290
Original file line number Diff line number Diff line change @@ -310,6 +310,16 @@ export class GlPatchCreate extends GlTreeBase {
310
310
</ div > ` ,
311
311
) }
312
312
</ div >
313
+
314
+ ${ when (
315
+ this . generate ?. error != null ,
316
+ ( ) => html `
317
+ < div class ="alert alert--error ">
318
+ < code-icon icon ="error "> </ code-icon >
319
+ < p class ="alert__content "> ${ this . generate ! . error ! . message ?? 'Error retrieving content' } </ p >
320
+ </ div >
321
+ ` ,
322
+ ) }
313
323
< div class ="message-input ">
314
324
< textarea
315
325
id ="desc "
You can’t perform that action at this time.
0 commit comments