mirror of
https://github.com/flarum/core.git
synced 2025-07-20 08:11:27 +02:00
Missed some create→extend changes
This commit is contained in:
@@ -26,7 +26,7 @@ export default Ember.Component.extend(HasItemLists, {
|
|||||||
var component = this;
|
var component = this;
|
||||||
|
|
||||||
this.get('buttons').forEach(function(button) {
|
this.get('buttons').forEach(function(button) {
|
||||||
controls.pushObject(ActionButton.create({
|
controls.pushObject(ActionButton.extend({
|
||||||
label: button.label,
|
label: button.label,
|
||||||
action: function() {
|
action: function() {
|
||||||
component.send('dismiss');
|
component.send('dismiss');
|
||||||
@@ -36,7 +36,7 @@ export default Ember.Component.extend(HasItemLists, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (this.get('dismissable')) {
|
if (this.get('dismissable')) {
|
||||||
var dismiss = ActionButton.create({
|
var dismiss = ActionButton.extend({
|
||||||
icon: 'times',
|
icon: 'times',
|
||||||
className: 'btn btn-icon btn-link',
|
className: 'btn btn-icon btn-link',
|
||||||
action: function() { component.send('dismiss'); }
|
action: function() { component.send('dismiss'); }
|
||||||
|
@@ -74,8 +74,8 @@ export default Ember.View.extend(HasItemLists, {
|
|||||||
logout: function() { controller.send('invalidateSession'); }
|
logout: function() { controller.send('invalidateSession'); }
|
||||||
}), 'user');
|
}), 'user');
|
||||||
} else {
|
} else {
|
||||||
this.addActionItem(items, 'signup', 'Sign Up').set('className', 'btn btn-link');
|
this.addActionItem(items, 'signup', 'Sign Up').reopen({className: 'btn btn-link'});
|
||||||
this.addActionItem(items, 'login', 'Log In').set('className', 'btn btn-link');
|
this.addActionItem(items, 'login', 'Log In').reopen({className: 'btn btn-link'});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user