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 @@ ...@@ -5,7 +5,7 @@
</div> </div>
<p class="card-category">{{assgn.description}}</p> <p class="card-category">{{assgn.description}}</p>
<h3 class="card-title">{{assgn.title}}</h3> <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>
<div class="card-footer"> <div class="card-footer">
<p>{{assgn.language}}</p> <p>{{assgn.language}}</p>
......
...@@ -2,13 +2,6 @@ import { Component, OnInit, Input } from '@angular/core'; ...@@ -2,13 +2,6 @@ import { Component, OnInit, Input } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { Assignment } from 'app/model/assignment'; 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({ @Component({
selector: 'app-card-assignment', selector: 'app-card-assignment',
templateUrl: './card-assignment.component.html', templateUrl: './card-assignment.component.html',
...@@ -16,25 +9,9 @@ export interface DialogData { ...@@ -16,25 +9,9 @@ export interface DialogData {
}) })
export class CardAssignmentComponent implements OnInit { export class CardAssignmentComponent implements OnInit {
@Input() assgn : Assignment; @Input() assgn : Assignment;
animal: string;
name: string;
constructor(public dialog: MatDialog) { } constructor() { }
ngOnInit(): void { 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 @@ ...@@ -23,7 +23,6 @@
</table> --> </table> -->
<!-- Filter by dropdown --> <!-- Filter by dropdown -->
<!-- <mat-form-field appearance="fill" *ngFor="let empfilter of empFilters"> <!-- <mat-form-field appearance="fill" *ngFor="let empfilter of empFilters">
<mat-label>{{empfilter.name}}</mat-label> <mat-label>{{empfilter.name}}</mat-label>
<mat-select [(value)]="empfilter.defaultValue" (selectionChange)="applyEmpFilter($event,empfilter)"> <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