arreglar checkeo de isAdmin

This commit is contained in:
Eduardo Quiros 2021-07-23 20:55:45 -06:00
parent 0d07c7adc3
commit 915441b07f
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
2 changed files with 5 additions and 4 deletions

View File

@ -36,7 +36,7 @@
</div>
<!-- Lista de Encuestas del Usuario -->
<div class="ds-list" (contextmenu)="openContextMenu($event)" *ngIf="!isAdmin">
<div class="ds-list" (contextmenu)="openContextMenu($event)" *ngIf="!isAdmin()">
<!-- Context Menu -->
<div class="ds-contextmenu ds-contextmenu--closed" id="contextmenu">
<ul id="ds-context-menu__list">
@ -84,7 +84,7 @@
(click)="selectSurvey($event)"
[attr.data-id]="encuesta.id"
>
<div class="entity-header">
<div *ngIf="encuesta.estado != estadoDeleted" class="entity-header">
<div class="entity-state--container">
<div
class="entity-state"
@ -120,7 +120,7 @@
</div>
</div>
<div class="entity-body">
<div *ngIf="encuesta.estado != estadoDeleted" class="entity-body">
<div class="entity-body--row">
<span *ngIf="encuesta.acceso == 'PUBLIC'" class="title"
><fa-icon class="entity-icon--access" [icon]="faUnlock"></fa-icon>&nbsp;&nbsp;{{ encuesta.nombre | titlecase }}</span
@ -205,7 +205,7 @@
</div>
</div>
<div class="table-responsive" id="entities" *ngIf="isAdmin && encuestas && encuestas.length > 0">
<div class="table-responsive" id="entities" *ngIf="isAdmin() && encuestas && encuestas.length > 0">
<table class="table table-striped" aria-describedby="page-heading">
<thead>
<tr>

View File

@ -57,6 +57,7 @@ export class EncuestaComponent implements OnInit, AfterViewInit {
account: Account | null = null;
usuarioExtra: UsuarioExtra | null = null;
estadoDeleted = EstadoEncuesta.DELETED;
encuestas?: IEncuesta[];
isLoading = false;