From 1f7f75b32cb8b2de03a1859adb218560472ad3ef Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 19 Aug 2015 11:21:48 +0200 Subject: [PATCH] Auth is not a service, so for now inject auth into components as well --- app/components/log-content.coffee | 1 - app/initializers/auth.coffee | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/log-content.coffee b/app/components/log-content.coffee index 7efacdfa..09b5a225 100644 --- a/app/components/log-content.coffee +++ b/app/components/log-content.coffee @@ -43,7 +43,6 @@ Object.defineProperty Log.Limit.prototype, 'limited', LogContentComponent = Ember.Component.extend popup: Ember.inject.service() - auth: Ember.inject.service() currentUserBinding: 'auth.currentUser' diff --git a/app/initializers/auth.coffee b/app/initializers/auth.coffee index befb2174..fd167d55 100644 --- a/app/initializers/auth.coffee +++ b/app/initializers/auth.coffee @@ -7,6 +7,7 @@ initialize = (container, app) -> app.inject('route', 'auth', 'auth:main') app.inject('controller', 'auth', 'auth:main') app.inject('application', 'auth', 'auth:main') + app.inject('component', 'auth', 'auth:main') app.inject('auth', 'store', 'store:main')