0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Use placeholder only for last item

refs #4535

- as discussed in the meeting on 1st February ;)
- changed the fake-placeholder to only operate on the last item, this way it feels right, I think
This commit is contained in:
Hannah Wolfe 2015-02-13 23:27:22 +00:00
parent 81fd5f9eaf
commit 4a2963a2ae
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ var NavItemUrlInputComponent = Ember.TextField.extend({
}),
fakePlaceholder: Ember.computed('isBaseUrl', 'hasFocus', function () {
return this.get('isBaseUrl') && !this.get('hasFocus');
return this.get('isBaseUrl') && this.get('last') && !this.get('hasFocus');
}),
isRelative: Ember.computed('value', function () {

View file

@ -8,7 +8,7 @@
{{gh-trim-focus-input focus=navItem.last placeholder="Label" value=navItem.label}}
</span>
<span class="navigation-item-url">
{{gh-navitem-url-input baseUrl=baseUrl url=navItem.url change="updateUrl"}}
{{gh-navitem-url-input baseUrl=baseUrl url=navItem.url last=navItem.last change="updateUrl"}}
</span>
</div>
<span class="navigation-item-action">