FEATURE: Make it easy to override the home logo
This commit is contained in:
parent
cc0f76e60a
commit
c3aaeedc62
|
@ -4,10 +4,15 @@ import { setting } from 'discourse/lib/computed';
|
||||||
export default Ember.Component.extend({
|
export default Ember.Component.extend({
|
||||||
classNames: ["title"],
|
classNames: ["title"],
|
||||||
|
|
||||||
linkUrl: function() {
|
targetUrl: function() {
|
||||||
return Discourse.getURL('/');
|
// For overriding by customizations
|
||||||
|
return '/';
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
||||||
|
linkUrl: function() {
|
||||||
|
return Discourse.getURL(this.get('targetUrl'));
|
||||||
|
}.property('targetUrl'),
|
||||||
|
|
||||||
showSmallLogo: function() {
|
showSmallLogo: function() {
|
||||||
return !Discourse.Mobile.mobileView && this.get("minimized");
|
return !Discourse.Mobile.mobileView && this.get("minimized");
|
||||||
}.property("minimized"),
|
}.property("minimized"),
|
||||||
|
@ -27,7 +32,7 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
DiscourseURL.routeTo('/');
|
DiscourseURL.routeTo(this.get('targetUrl'));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue