-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cockpit/console): ensure console for processes is rendered
Prior to this commit, `Console` would only be rendered when Embark's API returns at least one registered process from `/embark-api/processes`. `Console` itself would then add another processes "embark" resulting in two tabs with console output. This used to work fine because Embark always registered at least a blockchain process. In cd934f8 however, this has changed. With Ganache being the default blockchain, there's no longer a processes registered for this service, resulting in an empty list for `processes` inside Cockpit, causing `Console` not to render at all. Which also means the `embark` process logs aren't rendered either. This commit removes the requirement of `processes` being non-empty so that embark process logs are always shown. It also fixes `Console` to updates its own `processes` state when its properties change. This is needed because it's no longer guarded by `DataWrapper`, which previously ensured `Console` is only rendered when there are processes. Kudos to @jrainville for helping me cracking this nut.
- Loading branch information
1 parent
de8f217
commit 3ce666b
Showing
2 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters