mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
14 lines
358 B
JavaScript
14 lines
358 B
JavaScript
import computed from "ember-addons/ember-computed-decorators";
|
|
|
|
export default Ember.Component.extend({
|
|
classNames: ["google-search-form"],
|
|
classNameBindings: ["hidden:hidden"],
|
|
|
|
hidden: Ember.computed.alias("siteSettings.login_required"),
|
|
|
|
@computed
|
|
siteUrl() {
|
|
return `${location.protocol}//${location.host}${Discourse.getURL("/")}`;
|
|
}
|
|
});
|