Reload labels after adding a new

This commit is contained in:
SondreB 2023-01-31 15:29:13 +01:00
parent 7fa5c4366d
commit 1e3409b7ec
No known key found for this signature in database
GPG Key ID: D6CC44C75005FDBF

View File

@ -35,9 +35,15 @@ export class LabelsComponent {
this.label = '';
this.showNewLabel = false;
await this.load();
}
async ngOnInit() {
await this.load();
}
async load() {
this.labels = await this.storageService.storage.getLabels();
}
}