From bdd5bff71c5facccb6cf45d7463e6ef91d211e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Barbeau?= Date: Thu, 31 Aug 2017 15:48:34 -0400 Subject: [PATCH] feat(context): remove buttons when anonyme --- src/lib/context/context-item/context-item.component.html | 2 +- src/lib/context/context-item/context-item.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/context/context-item/context-item.component.html b/src/lib/context/context-item/context-item.component.html index 5be672d862..166b3babf5 100644 --- a/src/lib/context/context-item/context-item.component.html +++ b/src/lib/context/context-item/context-item.component.html @@ -2,7 +2,7 @@ {{context.icon ? context.icon : 'star'}}

{{context.title}}

-
diff --git a/src/lib/context/context-item/context-item.component.ts b/src/lib/context/context-item/context-item.component.ts index aece37e06c..d8b0ddf473 100644 --- a/src/lib/context/context-item/context-item.component.ts +++ b/src/lib/context/context-item/context-item.component.ts @@ -1,5 +1,6 @@ import { Component, Input, Output, EventEmitter } from '@angular/core'; +import { AuthService } from '../../auth'; import { TypePermission } from '../shared/context.enum'; import { DetailedContext } from '../shared/context.interface'; @@ -26,4 +27,7 @@ export class ContextItemComponent { @Output() clone = new EventEmitter(); @Output() managePermissions = new EventEmitter(); @Output() manageTools = new EventEmitter(); + + constructor(public auth: AuthService) {} + }