Skip to content

Commit 6e2a9ec

Browse files
committed
Coveo: Use feature flag in error message
1 parent f31157a commit 6e2a9ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

layouts/partials/search-error.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{{- $isCoveoDefined := . -}}
1+
{{ $coveoEnabled := partial "get-feature-flags.html" "disable_coveo" }}
22

3-
<div class="content" data-testid="coveo-error-content" id="coveo-error-content" style="{{- if $isCoveoDefined -}}display: none;{{- else -}}{{- end -}}">
3+
<div class="content" data-testid="coveo-error-content" id="coveo-error-content" style="{{- if $coveoEnabled -}}display: none;{{- else -}}{{- end -}}">
44
<div class="not-found-container" data-testid="not-found-container">
55
<h1 class="info-header">
66
Search functionality is unavailable.

layouts/search/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<section class="search no-sidebar">
55
{{ partial "coveo-atomic.html" . }}
66
</section>
7-
{{ partial "search-error.html" true }}
7+
{{ partial "search-error.html" }}
88
{{ else }}
9-
{{ partial "search-error.html" false }}
9+
{{ partial "search-error.html" }}
1010
{{ end }}
1111
{{ end }}

0 commit comments

Comments
 (0)