Change repos-empty view to a component

This commit is contained in:
Piotr Sarnacki 2015-08-19 12:27:46 +02:00
parent da10f0a839
commit aa22f7bb61
4 changed files with 6 additions and 9 deletions

View File

@ -0,0 +1,5 @@
`import Ember from 'ember'`
ReposEmptyComponent = Ember.Component.extend()
`export default ReposEmptyComponent`

View File

@ -1,7 +1,7 @@
<div id="repo" class="{{view.className}} repo"> <div id="repo" class="{{view.className}} repo">
{{#if view.isEmpty}} {{#if view.isEmpty}}
{{view 'repos-empty'}} {{repos-empty}}
{{else}} {{else}}
{{#if repo.isLoaded}} {{#if repo.isLoaded}}

View File

@ -32,12 +32,4 @@ View = BasicView.extend Polling,
view.appendTo($('body')) view.appendTo($('body'))
return false return false
ReposEmptyView: BasicView.extend
template: (->
if config.pro
'pro/repos/show/empty'
else
''
).property()
`export default View` `export default View`