mirror of
https://github.com/akveo/eva-icons.git
synced 2025-09-09 05:30:41 +02:00
feat: inject ModalRef
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Component } from '@angular/core';
|
||||
// todo: uncomment when api will be implemented
|
||||
// import { HttpClient } from '@angular/common/http';
|
||||
import { NbModalRef } from '@nebular/theme';
|
||||
|
||||
class IconsFormat {
|
||||
png?: boolean;
|
||||
@@ -35,7 +36,7 @@ export class DownloadIconsComponent {
|
||||
png: '64',
|
||||
};
|
||||
|
||||
/*constructor(private http: HttpClient) {}*/
|
||||
constructor(protected modalRef: NbModalRef<DownloadIconsComponent>/*private http: HttpClient*/) {}
|
||||
|
||||
selectedSizes: IconsSize = {
|
||||
png: this.defaultIconsSizes[this.png],
|
||||
@@ -69,6 +70,8 @@ export class DownloadIconsComponent {
|
||||
}
|
||||
|
||||
downloadIcons() {
|
||||
this.modalRef.hide();
|
||||
|
||||
// todo: uncomment when api will be implemented
|
||||
/* this.http.get(
|
||||
'/api',
|
||||
|
Reference in New Issue
Block a user