mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: refactor show view in timeline button
This refactor includes changes to notify asset viewer about where an asset was shown from.
This commit is contained in:
parent
f2b553182a
commit
268867353b
8 changed files with 77 additions and 22 deletions
|
|
@ -61,8 +61,9 @@ class AssetViewer extends ConsumerStatefulWidget {
|
|||
@override
|
||||
ConsumerState createState() => _AssetViewerState();
|
||||
|
||||
static void setAsset(WidgetRef ref, BaseAsset asset) {
|
||||
static void setAsset(WidgetRef ref, BaseAsset asset, TimelineType timelineType) {
|
||||
ref.read(assetViewerProvider.notifier).reset();
|
||||
ref.read(assetViewerProvider.notifier).setTimelineType(timelineType);
|
||||
_setAsset(ref, asset);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue