Revert condition in deposit button, that deleted by mistake in last commit.
This commit is contained in:
parent
13d03e4459
commit
455e3c8fe0
|
@ -1,5 +1,5 @@
|
||||||
import {Component, EventEmitter, Inject, Input, OnInit, Output} from '@angular/core';
|
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||||
import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';
|
import {MatDialog} from '@angular/material/dialog';
|
||||||
import {DepositConfigurationStatus} from '@app/core/common/enum/deposit-configuration-status';
|
import {DepositConfigurationStatus} from '@app/core/common/enum/deposit-configuration-status';
|
||||||
import {DepositConfigurationModel} from '@app/core/model/deposit/deposit-configuration';
|
import {DepositConfigurationModel} from '@app/core/model/deposit/deposit-configuration';
|
||||||
import {DmpOverviewModel} from '@app/core/model/dmp/dmp-overview';
|
import {DmpOverviewModel} from '@app/core/model/dmp/dmp-overview';
|
||||||
|
@ -14,7 +14,7 @@ import {BaseComponent} from '@common/base/base.component';
|
||||||
import {MultipleChoiceDialogComponent} from '@common/modules/multiple-choice-dialog/multiple-choice-dialog.component';
|
import {MultipleChoiceDialogComponent} from '@common/modules/multiple-choice-dialog/multiple-choice-dialog.component';
|
||||||
import {TranslateService} from '@ngx-translate/core';
|
import {TranslateService} from '@ngx-translate/core';
|
||||||
import {takeUntil} from 'rxjs/operators';
|
import {takeUntil} from 'rxjs/operators';
|
||||||
import {DomSanitizer, SafeHtml, SafeResourceUrl} from "@angular/platform-browser";
|
import {DomSanitizer, SafeResourceUrl} from "@angular/platform-browser";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-dmp-deposit-dropdown',
|
selector: 'app-dmp-deposit-dropdown',
|
||||||
|
@ -55,7 +55,6 @@ export class DmpDepositDropdown extends BaseComponent implements OnInit {
|
||||||
this.inputRepos.forEach(repo => {
|
this.inputRepos.forEach(repo => {
|
||||||
if(repo.hasLogo) {
|
if(repo.hasLogo) {
|
||||||
this.depositRepositoriesService.getLogo(repo.repositoryId).subscribe(logo => {
|
this.depositRepositoriesService.getLogo(repo.repositoryId).subscribe(logo => {
|
||||||
console.log(this.sanitizer.bypassSecurityTrustResourceUrl('data:image/png;base64,' + logo));
|
|
||||||
this.logos.set(repo.repositoryId, this.sanitizer.bypassSecurityTrustResourceUrl('data:image/png;base64, ' + logo));
|
this.logos.set(repo.repositoryId, this.sanitizer.bypassSecurityTrustResourceUrl('data:image/png;base64, ' + logo));
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,7 @@
|
||||||
<hr class="hr-line">
|
<hr class="hr-line">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<app-dmp-deposit-dropdown [inputRepos]="depositRepos" [dmp]="dmp" (outputReposEmitter)="afterDeposit($event)"></app-dmp-deposit-dropdown>
|
<app-dmp-deposit-dropdown *ngIf="(hasDoi(dmp) || moreDeposit()) && isFinalizedDmp(dmp) && !this.isPublicView && isUserOwner" [inputRepos]="depositRepos" [dmp]="dmp" (outputReposEmitter)="afterDeposit($event)"></app-dmp-deposit-dropdown>
|
||||||
<div *ngIf="isFinalizedDmp(dmp) && hasDoi(dmp) && !isPublishedDMP(dmp) && isUserOwner" (click)="reverse()" class="row ml-0 mr-0 pl-4 pb-3 d-flex align-items-center">
|
<div *ngIf="isFinalizedDmp(dmp) && hasDoi(dmp) && !isPublishedDMP(dmp) && isUserOwner" (click)="reverse()" class="row ml-0 mr-0 pl-4 pb-3 d-flex align-items-center">
|
||||||
<button mat-mini-fab class="frame-btn">
|
<button mat-mini-fab class="frame-btn">
|
||||||
<mat-icon class="mat-mini-fab-icon">unarchive</mat-icon>
|
<mat-icon class="mat-mini-fab-icon">unarchive</mat-icon>
|
||||||
|
|
Loading…
Reference in New Issue