From cb282e82a17f775b530bdc58fc5ea62fd1d1ef60 Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Fri, 23 Sep 2022 18:24:44 -0400 Subject: [PATCH] Adds error state support for graph search --- .../apps/shared/components/search/search-field.ts | 71 ++++++++++++++++++---- 1 file changed, 60 insertions(+), 11 deletions(-) diff --git a/src/webviews/apps/shared/components/search/search-field.ts b/src/webviews/apps/shared/components/search/search-field.ts index f52611d..89fa6e7 100644 --- a/src/webviews/apps/shared/components/search/search-field.ts +++ b/src/webviews/apps/shared/components/search/search-field.ts @@ -1,4 +1,4 @@ -import { attr, css, customElement, FASTElement, html } from '@microsoft/fast-element'; +import { attr, css, customElement, FASTElement, html, observable, ref } from '@microsoft/fast-element'; import type { SearchQuery } from '../../../../../git/search'; import '../codicon'; @@ -8,15 +8,20 @@ const template = html` - +
+ +
${x => x.errorMessage}
+