FIX: revert button on all colors in a new color scheme
This commit is contained in:
parent
4980cff802
commit
eb7aab3e0b
|
@ -27,7 +27,7 @@ Discourse.ColorScheme = Discourse.Model.extend(Ember.Copyable, {
|
||||||
copy: function() {
|
copy: function() {
|
||||||
var newScheme = Discourse.ColorScheme.create({name: this.get('name'), enabled: false, can_edit: true, colors: Em.A()});
|
var newScheme = Discourse.ColorScheme.create({name: this.get('name'), enabled: false, can_edit: true, colors: Em.A()});
|
||||||
_.each(this.get('colors'), function(c){
|
_.each(this.get('colors'), function(c){
|
||||||
newScheme.colors.pushObject(Discourse.ColorSchemeColor.create({name: c.get('name'), hex: c.get('hex')}));
|
newScheme.colors.pushObject(Discourse.ColorSchemeColor.create({name: c.get('name'), hex: c.get('hex'), default_hex: c.get('default_hex')}));
|
||||||
});
|
});
|
||||||
return newScheme;
|
return newScheme;
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@import "common";
|
@import "common";
|
||||||
|
|
||||||
/* @import "desktop/*"; I don't know why this doesn't work. */
|
/* @import "desktop/*"; TODO: get this working again */
|
||||||
|
|
||||||
@import "desktop/compose";
|
@import "desktop/compose";
|
||||||
@import "desktop/discourse";
|
@import "desktop/discourse";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
@import "common";
|
@import "common";
|
||||||
/* @import "mobile/*"; I don't know why this doesn't work */
|
|
||||||
|
/* @import "mobile/*"; TODO: get this working again */
|
||||||
|
|
||||||
@import "mobile/compose";
|
@import "mobile/compose";
|
||||||
@import "mobile/discourse";
|
@import "mobile/discourse";
|
||||||
|
|
Loading…
Reference in New Issue