openems icon indicating copy to clipboard operation
openems copied to clipboard

UI: AppCenter Index: Refresh after install/delete of an App

Open DerStoecki opened this issue 1 year ago • 4 comments

Issue

Occured at: RedeemKey -> Select App to install -> install App -> after install -> auto route back from /settings/app//install/<App> to /settings/app

After installing a new app the index won't refresh / init / call GetApps again resulting in no visual feedback that the new App is installed.

This is only a problem on the first instance of an app.

Example:

AppCenterIndex

If I would Install a "Meter" App -> the index wouldn't update, I would need to manually refresh the page to see my newly installed App in the installed section.

Solution

Subscribe to the NavigationEnd Event and "init" again.

To prevent a reInit after navigating "back" (e.g. from a singleComponent back to the index) NavigationExtras were added,

DerStoecki avatar Feb 08 '24 11:02 DerStoecki

@michaelgrill: FYI. Maybe you could also review instead of Lukas.

sfeilmeier avatar Feb 08 '24 11:02 sfeilmeier

Code Coverage

github-actions[bot] avatar Feb 08 '24 11:02 github-actions[bot]

Code Coverage

github-actions[bot] avatar Apr 18 '24 06:04 github-actions[bot]

Code Coverage

github-actions[bot] avatar Apr 18 '24 06:04 github-actions[bot]