Handle new endpoints/properties in mod UI.
Dependencies
Dependencies are now exposed in the IMod
model's dependencies
property. Some important UI points for dependencies are:
- Prompt the user when they attempt to uninstall a mod when there is still an installed mod that depends on it. The warning should note that uninstalling this mod will also uninstall the dependent mods.
- Display dependencies of the mod in some part of the UI, maybe a details view.
Mod Unload
The endpoint /api/mods/unload/{id}
is now implemented. The changes needed for this are:
- Add a button to unload a mod (should be labelled as a delete button).
- Probably have a confirmation prompt for this.
- Definitely have a confirmation prompt if there are installed dependents of the mod as above.
- Change the current install/uninstall button to a toggle switch - since installing/uninstalling the mod is akin to enabling/disabling the mod from a user's perspective.