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