This repository has been archived on 2026-05-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
PolyNotFound/src/app/user/myPlaylists/popup-delete-playlist/popup-delete-playlist.component.ts
2021-11-24 21:34:27 +01:00

28 lines
797 B
TypeScript

import {Component, Inject, OnInit} from '@angular/core';
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
import {MessageService} from "../../../utils/services/message/message.service";
@Component({
selector: 'app-popup-delete-playlist',
templateUrl: './popup-delete-playlist.component.html',
styleUrls: ['./popup-delete-playlist.component.scss']
})
export class PopupDeletePlaylistComponent implements OnInit
{
playlist;
constructor( public dialogRef: MatDialogRef<PopupDeletePlaylistComponent>,
@Inject(MAT_DIALOG_DATA) public data,
private messageService: MessageService ) { }
ngOnInit(): void
{
this.playlist = this.data;
}
onValidate(): void
{
this.dialogRef.close(true);
}
}