refactor: templates module (#1199)

See: #1196
This commit is contained in:
Karan Takalkar
2020-08-12 20:42:08 +05:30
committed by GitHub
parent cc80bd9577
commit dbcf40e064
6 changed files with 8 additions and 12 deletions
@@ -1,5 +1,5 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { MatDialog } from '@angular/material';
@@ -17,7 +17,7 @@ import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.co
templateUrl: './view-template.component.html',
styleUrls: ['./view-template.component.scss']
})
export class ViewTemplateComponent implements OnInit {
export class ViewTemplateComponent {
/** Template Data */
templateData: any;
@@ -38,9 +38,6 @@ export class ViewTemplateComponent implements OnInit {
});
}
ngOnInit() {
}
/**
* Deletes the template and redirects to templates.
*/