Skip to content

Commit

Permalink
feat(cc-env-var-linked-services): make use of the cc-notice instead o…
Browse files Browse the repository at this point in the history
…f cc-error
  • Loading branch information
Galimede committed Jul 3, 2023
1 parent c5e2594 commit 3676829
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '../cc-loader/cc-loader.js';
import '../cc-error/cc-error.js';
import '../cc-notice/cc-notice.js';
import '../cc-env-var-form/cc-env-var-form.js';
import { css, html, LitElement } from 'lit';
import { i18n } from '../../lib/i18n.js';
Expand Down Expand Up @@ -134,7 +134,7 @@ export class CcEnvVarLinkedServices extends LitElement {
${this.error ? html`
<div class="error">
<cc-error>${this._getErrorMessage()}</cc-error>
<cc-notice intent="warning" .message="${this._getErrorMessage()}"></cc-notice>
</div>
` : ''}
`;
Expand All @@ -149,15 +149,14 @@ export class CcEnvVarLinkedServices extends LitElement {
}
.loading,
.empty-msg,
.error {
.empty-msg {
box-sizing: border-box;
padding: 1em;
border: 1px solid var(--cc-color-border-neutral, #aaa);
background-color: var(--cc-color-bg-default, #fff);
border-radius: var(--cc-border-radius-default, 0.25em);
}
.loading {
display: flex;
}
Expand Down

0 comments on commit 3676829

Please sign in to comment.