mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
Fixed button and title cases for Tags screen
no refs. Set "New tag" button and "Tag settings" to sentence case to be consistent with the rest of the UI. (Previously they were title case.)
This commit is contained in:
parent
4a3344e70a
commit
cdd3f40422
@ -32,9 +32,9 @@ export default Component.extend({
|
||||
|
||||
title: computed('tag.isNew', function () {
|
||||
if (this.get('tag.isNew')) {
|
||||
return 'New Tag';
|
||||
return 'New tag';
|
||||
} else {
|
||||
return 'Tag Settings';
|
||||
return 'Tag settings';
|
||||
}
|
||||
}),
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<header class="view-header">
|
||||
{{#gh-view-title}}<span>Tags</span>{{/gh-view-title}}
|
||||
<section class="view-actions">
|
||||
{{#link-to "settings.tags.new" class="gh-btn gh-btn-green"}}<span>New Tag</span>{{/link-to}}
|
||||
{{#link-to "settings.tags.new" class="gh-btn gh-btn-green"}}<span>New tag</span>{{/link-to}}
|
||||
</section>
|
||||
</header>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<header class="view-header">
|
||||
{{#gh-view-title}}<span>Tags</span>{{/gh-view-title}}
|
||||
<section class="view-actions">
|
||||
{{#link-to "settings.tags.new" class="gh-btn gh-btn-green"}}<span>New Tag</span>{{/link-to}}
|
||||
{{#link-to "settings.tags.new" class="gh-btn gh-btn-green"}}<span>New tag</span>{{/link-to}}
|
||||
</section>
|
||||
</header>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="no-posts-box">
|
||||
<div class="no-posts">
|
||||
<h3>You haven't added any tags yet!</h3>
|
||||
{{#link-to "settings.tags.new"}}<button type="button" class="gh-btn gh-btn-green btn-lg" title="New Tag"><span>Add a tag</span></button>{{/link-to}}
|
||||
{{#link-to "settings.tags.new"}}<button type="button" class="gh-btn gh-btn-green btn-lg" title="New tag"><span>Add a tag</span></button>{{/link-to}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -122,7 +122,7 @@ describe('Acceptance: Settings - Tags', function () {
|
||||
|
||||
// it shows selected tag form
|
||||
expect(find('.tag-settings-pane h4').textContent, 'settings pane title')
|
||||
.to.equal('Tag Settings');
|
||||
.to.equal('Tag settings');
|
||||
expect(find('.tag-settings-pane input[name="name"]').value, 'loads correct tag into form')
|
||||
.to.equal(tag1.name);
|
||||
|
||||
|
@ -56,10 +56,10 @@ describe('Integration: Component: gh-tag-settings-form', function () {
|
||||
await render(hbs`
|
||||
{{gh-tag-settings-form tag=tag setProperty=(action setProperty)}}
|
||||
`);
|
||||
expect(find('.tag-settings-pane h4').textContent, 'existing tag title').to.equal('Tag Settings');
|
||||
expect(find('.tag-settings-pane h4').textContent, 'existing tag title').to.equal('Tag settings');
|
||||
|
||||
this.set('tag.isNew', true);
|
||||
expect(find('.tag-settings-pane h4').textContent, 'new tag title').to.equal('New Tag');
|
||||
expect(find('.tag-settings-pane h4').textContent, 'new tag title').to.equal('New tag');
|
||||
});
|
||||
|
||||
it('renders main settings', async function () {
|
||||
|
Loading…
Reference in New Issue
Block a user