comment out private icon for dmp & dataset overview

This commit is contained in:
gpapavgeri 2020-07-24 14:09:21 +03:00
parent f059facd5a
commit 7f476ccd50
2 changed files with 34 additions and 31 deletions

View File

@ -12,28 +12,31 @@
<p class="col dataset-label p-0 ml-3 mb-0">{{ dataset.label }}</p> <p class="col dataset-label p-0 ml-3 mb-0">{{ dataset.label }}</p>
</div> </div>
<div class="row d-flex align-items-center mt-3 mb-4 label-txt"> <div class="row d-flex align-items-center mt-3 mb-4 label-txt">
<div *ngIf="isUserDatasetRelated()" class="d-flex mr-2"> <div *ngIf="isUserDatasetRelated()" class="d-flex">
<p class="ml-0 mb-0 label2-txt"> <p class="ml-0 mb-0 label2-txt">
{{ roleDisplayFromList(dataset.users) }} {{ roleDisplayFromList(dataset.users) }}
</p> </p>
</div> </div>
<span *ngIf="isUserDatasetRelated()" class="mr-2">.</span> <span *ngIf="isUserDatasetRelated()" class="ml-2 mr-2">.</span>
<div class="d-flex mr-2"> <!-- UNCOMMENT TO ADD PRIVATE ICON -->
<div *ngIf="dataset.public" class="d-flex flex-row"> <!-- <span *ngIf="isUserDatasetRelated() && (dataset.public || !dataset.public || lockStatus)" class="ml-2 mr-2">.</span> -->
<mat-icon class="status-icon">public</mat-icon> <div *ngIf="dataset.public" class="d-flex flex-row">
{{'DMP-OVERVIEW.PUBLIC' | translate}} <mat-icon class="status-icon">public</mat-icon>
</div> {{'DMP-OVERVIEW.PUBLIC' | translate}}
<div *ngIf="!dataset.public" class="d-flex flex-row">
<mat-icon class="status-icon">public_off</mat-icon>
{{'DMP-OVERVIEW.PRIVATE' | translate}}
</div>
</div> </div>
<span>.</span> <span *ngIf="dataset.public" class="ml-2 mr-2">.</span>
<div *ngIf="lockStatus" class="d-flex flex-row ml-2 mr-2"> <!-- UNCOMMENT TO ADD PRIVATE ICON -->
<!-- <div *ngIf="!dataset.public" class="d-flex flex-row">
<mat-icon class="status-icon">public_off</mat-icon>
{{'DMP-OVERVIEW.PRIVATE' | translate}}
</div>
<span *ngIf="!dataset.public" class="ml-2 mr-2">.</span> -->
<div *ngIf="lockStatus" class="d-flex flex-row">
<mat-icon class="status-icon">lock_outline</mat-icon> <mat-icon class="status-icon">lock_outline</mat-icon>
{{'DMP-OVERVIEW.LOCKED' | translate}} {{'DMP-OVERVIEW.LOCKED' | translate}}
</div> </div>
<div class="d-flex ml-2 mr-2">{{'GENERAL.STATUSES.EDIT' | translate}} : <span *ngIf="lockStatus" class="ml-2 mr-2">.</span>
<div class="d-flex mr-2">{{'GENERAL.STATUSES.EDIT' | translate}} :
{{dataset.modified | date:"longDate"}} {{dataset.modified | date:"longDate"}}
</div> </div>
<div class="d-flex ml-2 mr-4"> <div class="d-flex ml-2 mr-4">

View File

@ -13,28 +13,28 @@
</div> </div>
<div class="row d-flex align-items-center mt-3 mb-4 label-txt"> <div class="row d-flex align-items-center mt-3 mb-4 label-txt">
<div *ngIf="isUserDMPRelated()" class="d-flex"> <div *ngIf="isUserDMPRelated()" class="d-flex">
<p class="ml-0 mr-2 mb-0 label2-txt"> <p class="ml-0 mb-0 label2-txt">
{{ roleDisplayFromList(dmp.users) }}</p> {{ roleDisplayFromList(dmp.users) }}</p>
</div> </div>
<span *ngIf="isUserDMPRelated()" class="mr-2">.</span> <span *ngIf="isUserDMPRelated() && (dmp.isPublic || lockStatus)" class="ml-2 mr-2">.</span>
<div class="d-flex mr-2"> <!-- UNCOMMENT TO ADD PRIVATE ICON -->
<div *ngIf="dmp.isPublic" class="d-flex flex-row"> <!-- <span *ngIf="isUserDMPRelated() && (dmp.isPublic || !dmp.isPublic || lockStatus)" class="ml-2 mr-2">.</span> -->
<mat-icon class="status-icon">public</mat-icon> <div *ngIf="dmp.isPublic" class="d-flex flex-row">
{{'DMP-OVERVIEW.PUBLIC' | translate}} <mat-icon class="status-icon">public</mat-icon>
</div> {{'DMP-OVERVIEW.PUBLIC' | translate}}
<div *ngIf="!dmp.isPublic" class="d-flex flex-row">
<mat-icon class="status-icon">public_off</mat-icon>
{{'DMP-OVERVIEW.PRIVATE' | translate}}
</div>
</div> </div>
<span *ngIf="dmp.isPublic && lockStatus" class="ml-2 mr-2">.</span>
<div *ngIf="lockStatus" class="d-flex flex-row mr-2"> <!-- UNCOMMENT TO ADD PRIVATE ICON -->
<span>.</span> <!-- <div *ngIf="!dmp.isPublic" class="d-flex flex-row">
<mat-icon class="status-icon ml-2">lock_outline</mat-icon> <mat-icon class="status-icon">public_off</mat-icon>
{{'DMP-OVERVIEW.PRIVATE' | translate}}
</div>
<span *ngIf="!dmp.isPublic && lockStatus" class="ml-2 mr-2">.</span> -->
<div *ngIf="lockStatus" class="d-flex flex-row">
<mat-icon class="status-icon">lock_outline</mat-icon>
{{'DMP-OVERVIEW.LOCKED' | translate}} {{'DMP-OVERVIEW.LOCKED' | translate}}
</div> </div>
<span>.</span> <mat-form-field appearance="outline" class="versions-select ml-3 mr-3">
<mat-form-field appearance="outline" class="versions-select ml-2 mr-4">
<mat-select placeholder="{{'DMP-LISTING.VERSION' | translate}} {{dmp.version}}" <mat-select placeholder="{{'DMP-LISTING.VERSION' | translate}} {{dmp.version}}"
[(ngModel)]="version" (ngModelChange)="versionChanged(version.id)"> [(ngModel)]="version" (ngModelChange)="versionChanged(version.id)">
<mat-option *ngFor="let version of versions" [value]="version"> <mat-option *ngFor="let version of versions" [value]="version">