ui: Change title helper to page-title (#9211)

This commit is contained in:
John Cowen 2020-11-18 11:11:30 +00:00 committed by GitHub
parent 7edee36621
commit 664f1d9aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 31 additions and 31 deletions

View File

@ -1,5 +1,5 @@
<HeadLayout />
{{title 'Consul' separator=' - '}}
{{page-title 'Consul' separator=' - '}}
{{#if (not-eq router.currentRouteName 'application')}}
<HashicorpConsul
id="wrapper"

View File

@ -1,11 +1,11 @@
{{#if isAuthorized }}
{{#if create }}
{{title 'New Policy'}}
{{page-title 'New Policy'}}
{{else}}
{{title 'Edit Policy'}}
{{page-title 'Edit Policy'}}
{{/if}}
{{else}}
{{title 'Access Controls'}}
{{page-title 'Access Controls'}}
{{/if}}
<AppView
@authorized={{isAuthorized}}

View File

@ -1,7 +1,7 @@
{{#if isAuthorized }}
{{title 'Policies'}}
{{page-title 'Policies'}}
{{else}}
{{title 'Access Controls'}}
{{page-title 'Access Controls'}}
{{/if}}
{{#let (hash
kinds=(if kind (split kind ',') undefined)

View File

@ -1,11 +1,11 @@
{{#if isAuthorized }}
{{#if item.ID}}
{{title 'Edit Role'}}
{{page-title 'Edit Role'}}
{{else}}
{{title 'New Role'}}
{{page-title 'New Role'}}
{{/if}}
{{else}}
{{title 'Access Controls'}}
{{page-title 'Access Controls'}}
{{/if}}
<AppView
@authorized={{isAuthorized}}

View File

@ -1,7 +1,7 @@
{{#if isAuthorized }}
{{title 'Roles'}}
{{page-title 'Roles'}}
{{else}}
{{title 'Access Controls'}}
{{page-title 'Access Controls'}}
{{/if}}
{{#let (or sortBy "Name:asc") as |sort|}}

View File

@ -1,11 +1,11 @@
{{#if isAuthorized }}
{{#if create}}
{{title 'New Token'}}
{{page-title 'New Token'}}
{{else}}
{{title 'Edit Token'}}
{{page-title 'Edit Token'}}
{{/if}}
{{else}}
{{title 'Access Controls'}}
{{page-title 'Access Controls'}}
{{/if}}
<AppView
@authorized={{isAuthorized}}

View File

@ -1,7 +1,7 @@
{{#if isAuthorized }}
{{title 'Tokens'}}
{{page-title 'Tokens'}}
{{else}}
{{title 'Access Controls'}}
{{page-title 'Access Controls'}}
{{/if}}
{{#let (hash

View File

@ -1,7 +1,7 @@
{{#if item.ID}}
{{title 'Edit Intention'}}
{{page-title 'Edit Intention'}}
{{else}}
{{title 'New Intention'}}
{{page-title 'New Intention'}}
{{/if}}
<AppView>
<BlockSlot @name="breadcrumbs">

View File

@ -1,4 +1,4 @@
{{title 'Intentions'}}
{{page-title 'Intentions'}}
<DataLoader @src={{concat '/' nspace '/' dc '/intentions'}} as |api|>
<BlockSlot @name="error">

View File

@ -1,7 +1,7 @@
{{#if item.Key }}
{{title 'Edit Key/Value'}}
{{page-title 'Edit Key/Value'}}
{{else}}
{{title 'New Key/Value'}}
{{page-title 'New Key/Value'}}
{{/if}}
<AppView>
<BlockSlot @name="breadcrumbs">

View File

@ -1,4 +1,4 @@
{{title 'Key/Value'}}
{{page-title 'Key/Value'}}
{{#let (or sortBy "isFolder:asc") as |sort|}}
<AppView>
<BlockSlot @name="breadcrumbs">

View File

@ -1,4 +1,4 @@
{{title 'Nodes'}}
{{page-title 'Nodes'}}
<EventSource @src={{items}} />
<EventSource @src={{leader}} />
{{#let (hash

View File

@ -1,4 +1,4 @@
{{title item.Node}}
{{page-title item.Node}}
<DataLoader as |api|>
<BlockSlot @name="data">

View File

@ -1,7 +1,7 @@
{{#if create }}
{{title 'New Namespace'}}
{{page-title 'New Namespace'}}
{{else}}
{{title 'Edit Namespace'}}
{{page-title 'Edit Namespace'}}
{{/if}}
<AppView>
<BlockSlot @name="notification" as |status type item error|>

View File

@ -1,4 +1,4 @@
{{title 'Namespaces'}}
{{page-title 'Namespaces'}}
{{#let (or sortBy "Name:asc") as |sort|}}
<EventSource @src={{items}} />
<AppView>

View File

@ -1,4 +1,4 @@
{{title 'Services'}}
{{page-title 'Services'}}
<EventSource @src={{items}} />
{{#let (hash
statuses=(if status (split status ',') undefined)

View File

@ -1,4 +1,4 @@
{{title item.Service.ID}}
{{page-title item.Service.ID}}
<EventSource @src={{item}} @onerror={{action "error"}} />
<EventSource @src={{proxy}} />
<EventSource @src={{proxyMeta}} />

View File

@ -4,7 +4,7 @@
<EventSource @src={{proxies}} />
<EventSource @src={{gatewayServices}} />
<EventSource @src={{topology}} />
{{title item.Service.Service}}
{{page-title item.Service.Service}}
<AppView>
<BlockSlot @name="notification" as |status type|>
<Consul::Service::Notifications

View File

@ -1,4 +1,4 @@
{{title "Settings"}}
{{page-title "Settings"}}
<AppView>
<BlockSlot @name="header">
<h1>