| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (getCurrentPage() == ExtensionsMenuProperties.Page.MAIN) {can you pull this out into a helper?
// Site access requests only affect the main page.
if (getCurrentPage() == ExtensionsMenuProperties.Page.MAIN) {
updateHostAccessRequests();
}can we also pull this out into a helper and call it something like `maybeUpdateHostAccessRequests()`?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
Thanks Eva! Lost +1 because a gitlink was wrongly added. Mind stamping again?
if (getCurrentPage() == ExtensionsMenuProperties.Page.MAIN) {can you pull this out into a helper?
Thought about it, but I like the flexibility of getting the type and then each method checks for what it needs. Once methods are implemented can see what is better
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
aaaaa I lost it again because a gitlink :(
// Site access requests only affect the main page.
if (getCurrentPage() == ExtensionsMenuProperties.Page.MAIN) {
updateHostAccessRequests();
}Emilia Pazcan we also pull this out into a helper and call it something like `maybeUpdateHostAccessRequests()`?
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[Extensions] Add getCurrentPage to ExtensionsMenuMediator
The extensions menu will soon contain a site permissions page in addition to the main extensions list. The existing mediator logic assumed only the main page existed and would update its contents unconditionally. This would be incorrect when another page is active.
This change replaces the boolean isMainPageVisible() with a getCurrentPage() method that returns the current page enum. This allows observer methods (onModelChanged, onActionAdded, onActionUpdated, etc.) to check which page is currently displayed before applying UI updates. This prevents unnecessary updates to hidden pages and prepares the mediator for the site permissions page implementation.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |