more refactor
This commit is contained in:
parent
9933f4f9ff
commit
d612678682
1 changed files with 36 additions and 52 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue