2020-01-28 14:25:52 +00:00
{{ title "Settings" }}
2020-02-19 19:26:38 +00:00
<HashicorpConsul @id="wrapper" @permissions= {{ permissions }} @dcs= {{ dcs }} @dc= {{ dc }} @nspaces= {{ nspaces }} @nspace= {{ nspace }} >
<AppView @class="settings show">
<BlockSlot @name="header">
2019-05-01 18:19:43 +00:00
<h1>
2020-01-22 14:19:01 +00:00
Settings
2019-05-01 18:19:43 +00:00
</h1>
2020-02-19 19:26:38 +00:00
</BlockSlot>
<BlockSlot @name="content">
2019-05-01 18:19:43 +00:00
<div class="notice info">
<h3>Local Storage</h3>
<p>
These settings are immediately saved to local storage and persisted through browser usage.
</p>
</div>
<form>
<fieldset>
<h2>Dashboard Links</h2>
<p>
2020-01-22 14:19:01 +00:00
Add a link to the service detail page in the UI to get quick access to a service-wide metrics dashboard. Enter the dashboard URL into the field below. You can use the placeholders <code> {{ '{{Datacenter}}' }} </code> and <code> {{ '{{Service.Name}}' }} </code> which will be replaced with the name of the datacenter/service currently being viewed.
2019-05-01 18:19:43 +00:00
</p>
2019-05-17 11:33:12 +00:00
<label class= {{ concat ( if confirming 'confirming' ) ' type-text' }} id="urls_service">
2019-05-01 18:19:43 +00:00
<span>Link template for services</span>
<input type="text" name="urls[service]" value= {{ item .urls .service }} onchange= {{ action 'change' }} onkeypress= {{ action 'key' }} onkeydown= {{ action 'key' }} />
2020-01-22 14:19:01 +00:00
<em>e.g. https://grafana.example.com/d/1/consul-service-mesh&orgid=1&datacenter= {{ '{{Datacenter}}' }} &service-name= {{ '{{Service.Name}}' }} </em>
2019-05-01 18:19:43 +00:00
</label>
</fieldset>
2020-01-22 14:19:01 +00:00
{{ # if ( not ( env 'CONSUL_UI_DISABLE_REALTIME' ) ) }}
2020-01-31 15:12:22 +00:00
<fieldset data-test-blocking-queries>
2019-05-01 18:19:43 +00:00
<h2>Blocking Queries</h2>
2020-01-29 16:22:31 +00:00
<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>
2019-05-01 18:19:43 +00:00
<div class="type-toggle">
<label>
2020-01-22 14:19:01 +00:00
<input type="checkbox" name="client[blocking]" checked= {{ if item .client .blocking 'checked' }} onchange= {{ action 'change' }} />
<span> {{ if item .client .blocking 'On' 'Off' }} </span>
2019-05-01 18:19:43 +00:00
</label>
</div>
</fieldset>
2020-01-22 14:19:01 +00:00
{{ / if }}
2019-05-01 18:19:43 +00:00
</form>
2020-02-19 19:26:38 +00:00
</BlockSlot>
</AppView>
</HashicorpConsul>