mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add photo detail page.
This commit is contained in:
@@ -171,6 +171,18 @@ public partial class MachineViewViewModel : ObservableObject
|
||||
await _navigator.GoBack(this);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
public async Task ViewPhotoDetails(Guid photoId)
|
||||
{
|
||||
var navParam = new PhotoDetailNavigationParameter
|
||||
{
|
||||
PhotoId = photoId
|
||||
};
|
||||
|
||||
_logger.LogInformation("Navigating to photo details for {PhotoId}", photoId);
|
||||
await _navigator.NavigateViewModelAsync<PhotoDetailViewModel>(this, data: navParam);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the navigation source (where we came from).
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user