ES6: Support for views. Quote button proof of concept
This commit is contained in:
parent
a4b4b0e53a
commit
f839573d85
|
@ -61,6 +61,10 @@ Discourse.Resolver = Ember.DefaultResolver.extend({
|
|||
return module;
|
||||
},
|
||||
|
||||
resolveView: function(parsedName) {
|
||||
return this.customResolve(parsedName) || this._super(parsedName);
|
||||
},
|
||||
|
||||
resolveController: function(parsedName) {
|
||||
return this.customResolve(parsedName) || this._super(parsedName);
|
||||
},
|
||||
|
|
|
@ -146,7 +146,7 @@
|
|||
{{render "posterExpansion"}}
|
||||
|
||||
{{#if currentUser.enable_quoting}}
|
||||
{{render "quoteButton"}}
|
||||
{{render "quote-button"}}
|
||||
{{/if}}
|
||||
|
||||
{{#if currentUser.canManageTopic}}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
@namespace Discourse
|
||||
@module Discourse
|
||||
**/
|
||||
Discourse.QuoteButtonView = Discourse.View.extend({
|
||||
export default Discourse.View.extend({
|
||||
classNames: ['quote-button'],
|
||||
classNameBindings: ['visible'],
|
||||
isMouseDown: false,
|
Loading…
Reference in New Issue