Settings is now a route instead of a dialog

This commit is contained in:
Isaac Abadi
2021-07-26 18:18:07 -07:00
parent 6e084bd94a
commit 73b9cf7893
8 changed files with 39 additions and 20 deletions

View File

@@ -85,6 +85,10 @@ export class SettingsComponent implements OnInit {
})
}
cancelSettings() {
this.new_config = JSON.parse(JSON.stringify(this.initial_config));
}
dropCategory(event: CdkDragDrop<string[]>) {
moveItemInArray(this.postsService.categories, event.previousIndex, event.currentIndex);
this.postsService.updateCategories(this.postsService.categories).subscribe(res => {