Extract icon imports to separate util
All checks were successful
CI / Lint (pull_request) Successful in 28s
CI / Test (pull_request) Successful in 43s

So icons can be used from anywhere, e.g. map component JS
This commit is contained in:
2026-03-14 12:28:17 +04:00
parent f1779131e8
commit ec0d5a30f9
6 changed files with 79 additions and 67 deletions

View File

@@ -141,6 +141,16 @@ export default class StorageService extends Service {
const lists = await this.places.lists.getAll();
this.lists = lists || [];
// Decorate with hardcoded icons for default lists (in-memory only)
this.lists.forEach((list) => {
if (list.id === 'to-go') {
list.icon = 'bookmark';
} else if (list.id === 'to-do') {
list.icon = 'check-square';
}
});
this.refreshPlaceListAssociations();
} catch (e) {
console.error('Failed to load lists:', e);