[Library | Trunk]: Full screen modal: Make keys optionals

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60599 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2021-03-05 13:51:09 +00:00
parent cfe3ab4fd0
commit 255510903a
1 changed files with 3 additions and 4 deletions

View File

@ -12,7 +12,7 @@ import {Component, ElementRef, EventEmitter, Input, OnInit, Output} from "@angul
<h5 *ngIf="title" class="uk-position-center">
{{title}}
</h5>
<div class="uk-position-center-right uk-visible@m">
<div *ngIf="keys" class="uk-position-center-right uk-visible@m">
<button class="uk-button uk-button-secondary outlined" (click)="close()">{{cancelButtonText}}</button>
<button class="uk-button uk-button-secondary space" (click)="ok()">{{okButtonText}}</button>
</div>
@ -20,7 +20,7 @@ import {Component, ElementRef, EventEmitter, Input, OnInit, Output} from "@angul
</div>
<div class="content">
<div class="content-header">
<div class="uk-flex uk-flex-center uk-width-1-1 uk-margin-medium-bottom uk-hidden@m">
<div *ngIf="keys" class="uk-flex uk-flex-center uk-width-1-1 uk-margin-medium-bottom uk-hidden@m">
<button class="uk-button uk-button-secondary outlined" (click)="close()">{{cancelButtonText}}</button>
<button class="uk-button uk-button-secondary space" (click)="ok()">{{okButtonText}}</button>
</div>
@ -37,9 +37,8 @@ import {Component, ElementRef, EventEmitter, Input, OnInit, Output} from "@angul
export class FullScreenModalComponent implements OnInit {
okButtonText = 'OK';
cancelButtonText = 'Cancel';
keys: boolean = false;
title: string = null;
@Input()
customKeys: boolean = false;
@Output()
okEmitter: EventEmitter<boolean> = new EventEmitter<boolean>();
opened: boolean = false;