Show 'Top' button only if log has any content
This commit is contained in:
parent
50ad230104
commit
92fbc73760
|
@ -41,6 +41,8 @@ Log = Ember.Object.extend
|
||||||
isLoaded: false
|
isLoaded: false
|
||||||
length: 0
|
length: 0
|
||||||
|
|
||||||
|
hasContent: Ember.computed.gt('parts.length', 0)
|
||||||
|
|
||||||
fetchMissingParts: (partNumbers, after) ->
|
fetchMissingParts: (partNumbers, after) ->
|
||||||
return if @get('notStarted')
|
return if @get('notStarted')
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,9 @@
|
||||||
</a>
|
</a>
|
||||||
<pre id="log" class="ansi"></pre>
|
<pre id="log" class="ansi"></pre>
|
||||||
|
|
||||||
<a href='#' class="to-top" {{action "toTop" target=view}}>Top</a>
|
{{#if view.log.hasContent}}
|
||||||
|
<a href='#' class="to-top" {{action "toTop" target=view}}>Top</a>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if view.limited}}
|
{{#if view.limited}}
|
||||||
<p class="warning">
|
<p class="warning">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user