When there is a topic draft in place instead of showing "+ New Topic" we will show "+ Open Draft", this allows topic drafts to be much less intrusive. Also, fixes draft handling of tags
10 lines
294 B
JavaScript
10 lines
294 B
JavaScript
|
|
export default Ember.Controller.extend({
|
|
discovery: Ember.inject.controller(),
|
|
discoveryTopics: Ember.inject.controller('discovery/topics'),
|
|
|
|
draft: function() {
|
|
return this.get('discoveryTopics.model.draft');
|
|
}.property('discoveryTopics.model', 'discoveryTopics.model.draft')
|
|
});
|