stable
Juanfran 2015-12-10 12:46:54 +01:00
parent 4a3d4532c2
commit 519197c037
2 changed files with 5 additions and 4 deletions

View File

@ -36,9 +36,9 @@ class ProjectController
@appMetaService.setfn @._setMeta.bind(this)
_setMeta: (project)->
metas = {}
return null if !@.project
return metas if !@.project
metas = {}
ctx = {projectName: @.project.get("name")}

View File

@ -97,7 +97,8 @@ class AppMetaService
@._listener() if @.listener
@._listener = @rootScope.$watchCollection fn, (metas) =>
@.setAll(metas.title, metas.description)
if metas
@.setAll(metas.title, metas.description)
@._listener()
angular.module("taigaCommon").service("tgAppMetaService", AppMetaService)