mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add GPU details page.
This commit is contained in:
@@ -167,6 +167,20 @@ public partial class MachineViewViewModel : ObservableObject
|
||||
return;
|
||||
}
|
||||
|
||||
// If we came from GpuDetailViewModel, navigate back to GPU details
|
||||
if(_navigationSource is GpuDetailViewModel gpuDetailVm)
|
||||
{
|
||||
var navParam = new GpuDetailNavigationParameter
|
||||
{
|
||||
GpuId = gpuDetailVm.GpuId,
|
||||
NavigationSource = this
|
||||
};
|
||||
|
||||
await _navigator.NavigateViewModelAsync<GpuDetailViewModel>(this, data: navParam);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Otherwise, try to go back in the navigation stack
|
||||
await _navigator.GoBack(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user