add logic

This commit is contained in:
2026-10-07 17:32:25 +03:00
parent cdcdd22526
commit f86777e2cd
69 changed files with 1519 additions and 637 deletions
@@ -42,6 +42,8 @@ export class CollectSuccess {
readonly cityName = input('');
readonly opened = input(0);
readonly total = input(1);
readonly areaId = input('');
readonly alreadyVisited = input(false);
protected readonly view = signal<'model' | 'image'>('model');
protected readonly modelLoaded = signal(false);
@@ -129,7 +131,8 @@ export class CollectSuccess {
return;
}
void this.router.navigateByUrl('/city');
const areaId = this.areaId();
void this.router.navigate(areaId ? ['/city', areaId] : ['/']);
}
}