mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 17:25:35 +03:00
feat: improve/refactor focus handling (#17796)
* feat: improve focus * test * lint * use modulus in loop
This commit is contained in:
@@ -14,7 +14,6 @@ export class AssetInteraction {
|
||||
return this.assetSelectionCandidates.some((asset) => asset.id === assetId);
|
||||
}
|
||||
assetSelectionStart = $state<AssetResponseDto | null>(null);
|
||||
focussedAssetId = $state<string | null>(null);
|
||||
selectionActive = $derived(this.selectedAssets.length > 0);
|
||||
|
||||
private user = fromStore<UserAdminResponseDto | undefined>(user);
|
||||
@@ -73,8 +72,4 @@ export class AssetInteraction {
|
||||
this.assetSelectionCandidates = [];
|
||||
this.assetSelectionStart = null;
|
||||
}
|
||||
|
||||
isFocussedAsset(assetId: string) {
|
||||
return this.focussedAssetId === assetId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user