more refactor

This commit is contained in:
Andras Schmelczer 2019-09-06 23:16:05 +02:00
commit d612678682

View file

@ -9,14 +9,13 @@ import { Page } from '../../../../model/page';
styleUrls: ['./settings.component.scss']
})
export class SettingsComponent implements OnInit {
page: Page;
constructor(public modalService: ModalService, public dataService: DataService) {}
ngOnInit() {
this.modalService.active.input.subscribe(p => (this.page = p));
}
page: Page;
async deletePage() {
try {
await this.modalService.showRemovePage(this.page.name);