mirror of https://github.com/status-im/consul.git
ui: Change title helper to page-title (#9211)
This commit is contained in:
parent
7edee36621
commit
664f1d9aa5
|
@ -1,5 +1,5 @@
|
||||||
<HeadLayout />
|
<HeadLayout />
|
||||||
{{title 'Consul' separator=' - '}}
|
{{page-title 'Consul' separator=' - '}}
|
||||||
{{#if (not-eq router.currentRouteName 'application')}}
|
{{#if (not-eq router.currentRouteName 'application')}}
|
||||||
<HashicorpConsul
|
<HashicorpConsul
|
||||||
id="wrapper"
|
id="wrapper"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{{#if isAuthorized }}
|
{{#if isAuthorized }}
|
||||||
{{#if create }}
|
{{#if create }}
|
||||||
{{title 'New Policy'}}
|
{{page-title 'New Policy'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'Edit Policy'}}
|
{{page-title 'Edit Policy'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'Access Controls'}}
|
{{page-title 'Access Controls'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<AppView
|
<AppView
|
||||||
@authorized={{isAuthorized}}
|
@authorized={{isAuthorized}}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{#if isAuthorized }}
|
{{#if isAuthorized }}
|
||||||
{{title 'Policies'}}
|
{{page-title 'Policies'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'Access Controls'}}
|
{{page-title 'Access Controls'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#let (hash
|
{{#let (hash
|
||||||
kinds=(if kind (split kind ',') undefined)
|
kinds=(if kind (split kind ',') undefined)
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{{#if isAuthorized }}
|
{{#if isAuthorized }}
|
||||||
{{#if item.ID}}
|
{{#if item.ID}}
|
||||||
{{title 'Edit Role'}}
|
{{page-title 'Edit Role'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'New Role'}}
|
{{page-title 'New Role'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'Access Controls'}}
|
{{page-title 'Access Controls'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<AppView
|
<AppView
|
||||||
@authorized={{isAuthorized}}
|
@authorized={{isAuthorized}}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{#if isAuthorized }}
|
{{#if isAuthorized }}
|
||||||
{{title 'Roles'}}
|
{{page-title 'Roles'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'Access Controls'}}
|
{{page-title 'Access Controls'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#let (or sortBy "Name:asc") as |sort|}}
|
{{#let (or sortBy "Name:asc") as |sort|}}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{{#if isAuthorized }}
|
{{#if isAuthorized }}
|
||||||
{{#if create}}
|
{{#if create}}
|
||||||
{{title 'New Token'}}
|
{{page-title 'New Token'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'Edit Token'}}
|
{{page-title 'Edit Token'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'Access Controls'}}
|
{{page-title 'Access Controls'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<AppView
|
<AppView
|
||||||
@authorized={{isAuthorized}}
|
@authorized={{isAuthorized}}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{#if isAuthorized }}
|
{{#if isAuthorized }}
|
||||||
{{title 'Tokens'}}
|
{{page-title 'Tokens'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'Access Controls'}}
|
{{page-title 'Access Controls'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#let (hash
|
{{#let (hash
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{#if item.ID}}
|
{{#if item.ID}}
|
||||||
{{title 'Edit Intention'}}
|
{{page-title 'Edit Intention'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'New Intention'}}
|
{{page-title 'New Intention'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<AppView>
|
<AppView>
|
||||||
<BlockSlot @name="breadcrumbs">
|
<BlockSlot @name="breadcrumbs">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{title 'Intentions'}}
|
{{page-title 'Intentions'}}
|
||||||
<DataLoader @src={{concat '/' nspace '/' dc '/intentions'}} as |api|>
|
<DataLoader @src={{concat '/' nspace '/' dc '/intentions'}} as |api|>
|
||||||
|
|
||||||
<BlockSlot @name="error">
|
<BlockSlot @name="error">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{#if item.Key }}
|
{{#if item.Key }}
|
||||||
{{title 'Edit Key/Value'}}
|
{{page-title 'Edit Key/Value'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'New Key/Value'}}
|
{{page-title 'New Key/Value'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<AppView>
|
<AppView>
|
||||||
<BlockSlot @name="breadcrumbs">
|
<BlockSlot @name="breadcrumbs">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{title 'Key/Value'}}
|
{{page-title 'Key/Value'}}
|
||||||
{{#let (or sortBy "isFolder:asc") as |sort|}}
|
{{#let (or sortBy "isFolder:asc") as |sort|}}
|
||||||
<AppView>
|
<AppView>
|
||||||
<BlockSlot @name="breadcrumbs">
|
<BlockSlot @name="breadcrumbs">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{title 'Nodes'}}
|
{{page-title 'Nodes'}}
|
||||||
<EventSource @src={{items}} />
|
<EventSource @src={{items}} />
|
||||||
<EventSource @src={{leader}} />
|
<EventSource @src={{leader}} />
|
||||||
{{#let (hash
|
{{#let (hash
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{title item.Node}}
|
{{page-title item.Node}}
|
||||||
<DataLoader as |api|>
|
<DataLoader as |api|>
|
||||||
|
|
||||||
<BlockSlot @name="data">
|
<BlockSlot @name="data">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{#if create }}
|
{{#if create }}
|
||||||
{{title 'New Namespace'}}
|
{{page-title 'New Namespace'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{title 'Edit Namespace'}}
|
{{page-title 'Edit Namespace'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<AppView>
|
<AppView>
|
||||||
<BlockSlot @name="notification" as |status type item error|>
|
<BlockSlot @name="notification" as |status type item error|>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{title 'Namespaces'}}
|
{{page-title 'Namespaces'}}
|
||||||
{{#let (or sortBy "Name:asc") as |sort|}}
|
{{#let (or sortBy "Name:asc") as |sort|}}
|
||||||
<EventSource @src={{items}} />
|
<EventSource @src={{items}} />
|
||||||
<AppView>
|
<AppView>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{title 'Services'}}
|
{{page-title 'Services'}}
|
||||||
<EventSource @src={{items}} />
|
<EventSource @src={{items}} />
|
||||||
{{#let (hash
|
{{#let (hash
|
||||||
statuses=(if status (split status ',') undefined)
|
statuses=(if status (split status ',') undefined)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{title item.Service.ID}}
|
{{page-title item.Service.ID}}
|
||||||
<EventSource @src={{item}} @onerror={{action "error"}} />
|
<EventSource @src={{item}} @onerror={{action "error"}} />
|
||||||
<EventSource @src={{proxy}} />
|
<EventSource @src={{proxy}} />
|
||||||
<EventSource @src={{proxyMeta}} />
|
<EventSource @src={{proxyMeta}} />
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<EventSource @src={{proxies}} />
|
<EventSource @src={{proxies}} />
|
||||||
<EventSource @src={{gatewayServices}} />
|
<EventSource @src={{gatewayServices}} />
|
||||||
<EventSource @src={{topology}} />
|
<EventSource @src={{topology}} />
|
||||||
{{title item.Service.Service}}
|
{{page-title item.Service.Service}}
|
||||||
<AppView>
|
<AppView>
|
||||||
<BlockSlot @name="notification" as |status type|>
|
<BlockSlot @name="notification" as |status type|>
|
||||||
<Consul::Service::Notifications
|
<Consul::Service::Notifications
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{title "Settings"}}
|
{{page-title "Settings"}}
|
||||||
<AppView>
|
<AppView>
|
||||||
<BlockSlot @name="header">
|
<BlockSlot @name="header">
|
||||||
<h1>
|
<h1>
|
||||||
|
|
Loading…
Reference in New Issue