Skip to content
Snippets Groups Projects
Commit 721049fd authored by kelly.nguyen's avatar kelly.nguyen
Browse files

delete popup in card-assignment

parent 57fd7c30
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
</div>
<p class="card-category">{{assgn.description}}</p>
<h3 class="card-title">{{assgn.title}}</h3>
<a mat-raised-button (click)="openDialog()" class="btn btn-outline-info pull-right">Details</a>
<a mat-raised-button class="btn btn-outline-info pull-right">Details</a>
</div>
<div class="card-footer">
<p>{{assgn.language}}</p>
......
......@@ -2,13 +2,6 @@ import { Component, OnInit, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Assignment } from 'app/model/assignment';
import { TableListComponent } from 'app/table-list/table-list.component';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
export interface DialogData {
animal: string;
name: string;
}
@Component({
selector: 'app-card-assignment',
templateUrl: './card-assignment.component.html',
......@@ -16,25 +9,9 @@ export interface DialogData {
})
export class CardAssignmentComponent implements OnInit {
@Input() assgn : Assignment;
animal: string;
name: string;
constructor(public dialog: MatDialog) { }
constructor() { }
ngOnInit(): void {
}
openDialog(): void {
const dialogRef = this.dialog.open(TableListComponent, {
width: '800px',
// data: {name: this.name, animal: this.animal}
});
dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
this.animal = result;
});
}
}
......@@ -23,7 +23,6 @@
</table> -->
<!-- Filter by dropdown -->
<!-- <mat-form-field appearance="fill" *ngFor="let empfilter of empFilters">
<mat-label>{{empfilter.name}}</mat-label>
<mat-select [(value)]="empfilter.defaultValue" (selectionChange)="applyEmpFilter($event,empfilter)">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment