upgrade dependencies and migrate
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import { Component, OnInit, Inject } from '@angular/core';
|
||||
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||
import { MatTableDataSource } from '@angular/material/table';
|
||||
|
||||
import { VoucherService } from './../../../services/voucher.service';
|
||||
import { QuotaService } from './../../../services/quota.service';
|
||||
import { VoucherService } from './../../../services/voucher.service';
|
||||
|
||||
@Component({
|
||||
standalone: false,
|
||||
selector: 'app-account-voucher',
|
||||
templateUrl: './voucher.component.html',
|
||||
styleUrls: [ './voucher.component.scss' ]
|
||||
styleUrls: ['./voucher.component.scss']
|
||||
})
|
||||
export class VoucherComponent implements OnInit {
|
||||
|
||||
@@ -17,7 +18,7 @@ export class VoucherComponent implements OnInit {
|
||||
available = [];
|
||||
vouchers = [];
|
||||
voucherSource = new MatTableDataSource<any>();
|
||||
voucherColumns = [ 'type', 'code' ];
|
||||
voucherColumns = ['type', 'code'];
|
||||
|
||||
constructor(private voucherService: VoucherService, private quotaService: QuotaService, public dialog: MatDialog) { }
|
||||
|
||||
@@ -50,9 +51,10 @@ export class VoucherComponent implements OnInit {
|
||||
|
||||
|
||||
@Component({
|
||||
standalone: false,
|
||||
selector: 'app-voucher-dialog',
|
||||
templateUrl: 'voucher.dialog.html',
|
||||
styleUrls: [ './voucher.dialog.scss' ]
|
||||
styleUrls: ['./voucher.dialog.scss']
|
||||
})
|
||||
export class VoucherDialog {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user