2023-03-14 13:18:55 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
}}
|
|
|
|
|
2021-09-15 18:50:11 +00:00
|
|
|
<Route
|
|
|
|
@name={{routeName}}
|
|
|
|
as |route|>
|
|
|
|
<DataLoader
|
|
|
|
@src={{uri 'settings://consul:client'}}
|
|
|
|
as |loader|>
|
|
|
|
|
|
|
|
<BlockSlot @name="error">
|
|
|
|
<AppError
|
|
|
|
@error={{loader.error}}
|
|
|
|
@login={{route.model.app.login.open}}
|
|
|
|
/>
|
|
|
|
</BlockSlot>
|
|
|
|
|
|
|
|
<BlockSlot @name="loaded">
|
|
|
|
{{#let
|
|
|
|
(or loader.data (hash
|
|
|
|
blocking=true
|
|
|
|
)
|
|
|
|
)
|
|
|
|
as |item|}}
|
|
|
|
<AppView>
|
|
|
|
<BlockSlot @name="header">
|
|
|
|
<h1>
|
|
|
|
<route.Title @title="Settings" />
|
|
|
|
</h1>
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="content">
|
2023-02-25 04:07:12 +00:00
|
|
|
<Hds::Alert @type="inline" class='mb-3 mt-2' as |A|>
|
|
|
|
<A.Title>Local Storage</A.Title>
|
|
|
|
<A.Description>These settings are immediately saved to local storage and persisted through browser usage.</A.Description>
|
|
|
|
</Hds::Alert>
|
2021-09-15 18:50:11 +00:00
|
|
|
<form>
|
|
|
|
{{#if (not (env 'CONSUL_UI_DISABLE_REALTIME'))}}
|
2022-03-09 08:29:27 +00:00
|
|
|
<Disclosure as |disclosure|>
|
|
|
|
<disclosure.Details>
|
|
|
|
<DataSink
|
|
|
|
@data={{item}}
|
|
|
|
@sink='settings://consul:client'
|
|
|
|
@onchange={{action (fn disclosure.close)}}
|
|
|
|
/>
|
|
|
|
</disclosure.Details>
|
2021-09-15 18:50:11 +00:00
|
|
|
<fieldset data-test-blocking-queries>
|
|
|
|
<h2>Blocking Queries</h2>
|
|
|
|
<p>Keep catalog info up-to-date without refreshing the page. Any changes made to services, nodes and intentions would be reflected in real time.</p>
|
|
|
|
<div class="type-toggle">
|
|
|
|
<label>
|
|
|
|
<input
|
2022-03-09 08:29:27 +00:00
|
|
|
{{on 'change' (queue
|
|
|
|
(set item 'blocking' (not item.blocking))
|
|
|
|
(fn disclosure.open)
|
|
|
|
)}}
|
2021-09-15 18:50:11 +00:00
|
|
|
type="checkbox"
|
|
|
|
name="client[blocking]"
|
|
|
|
checked={{if item.blocking 'checked'}}
|
|
|
|
/>
|
|
|
|
<span>{{if item.blocking 'On' 'Off'}}</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
2022-03-09 08:29:27 +00:00
|
|
|
</Disclosure>
|
2021-09-15 18:50:11 +00:00
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
</BlockSlot>
|
|
|
|
</AppView>
|
|
|
|
{{/let}}
|
2020-04-21 15:49:11 +00:00
|
|
|
</BlockSlot>
|
2021-09-15 18:50:11 +00:00
|
|
|
</DataLoader>
|
|
|
|
</Route>
|