Skip to content

Commit

Permalink
feat(context): remove buttons when anonyme
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Sep 1, 2017
1 parent d028163 commit bdd5bff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/context/context-item/context-item.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<md-icon md-list-avatar>{{context.icon ? context.icon : 'star'}}</md-icon>
<h4 [ngClass]="{'hiddenTitle': !collapsed}" mdLine>{{context.title}}</h4>

<div *ngIf="context.permission === typePermission[typePermission.read]"
<div *ngIf="auth.authenticated && context.permission === typePermission[typePermission.read]"
igoStopPropagation
class="igo-actions-container">

Expand Down
4 changes: 4 additions & 0 deletions src/lib/context/context-item/context-item.component.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -26,4 +27,7 @@ export class ContextItemComponent {
@Output() clone = new EventEmitter<DetailedContext>();
@Output() managePermissions = new EventEmitter<DetailedContext>();
@Output() manageTools = new EventEmitter<DetailedContext>();

constructor(public auth: AuthService) {}

}

0 comments on commit bdd5bff

Please sign in to comment.