fix(ui): Marketplace plugin UI state not dynamically updating - #25057
Open
eduardomozart wants to merge 7 commits into
Open
fix(ui): Marketplace plugin UI state not dynamically updating#25057eduardomozart wants to merge 7 commits into
eduardomozart wants to merge 7 commits into
Conversation
… into fix-issue-25056
… into fix-issue-25056
… into fix-issue-25056
cconard96
requested changes
Aug 2, 2026
Co-authored-by: Curtis Conard <cconard96@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist before requesting a review
Please delete options that are not relevant.
Description
When updating or installing a plugin via the GLPI Marketplace, the UI correctly exposed the action buttons (e.g. "Enable") upon completion. However, the rest of the plugin card and the global marketplace UI did not dynamically update to reflect the new state, requiring a manual page refresh.
This PR addresses multiple frontend UI state inconsistencies that occur after a successful plugin update via AJAX:
data-new-versionattribute alongside the buttons, which the frontend extracts to update the version string dynamically..bg-warning-subtlehighlight class is now correctly stripped from the plugin card's.maincontainer once the plugin has been successfully updated.Changes Made
src/Glpi/Marketplace/View.php: ModifiedgetButtons()to append the plugin's latest version inside a hidden<span class="new-version" data-new-version="...">alongside the buttons HTML when the plugin exists locally.js/marketplace.js: Updated the AJAX.done()callback handling marketplace actions to extract thedata-new-versionattribute and update thespan.versionDOM element. Added logic to remove.bg-warning-subtleand decrement thealert-importantglobal updatable counter dynamically.Screenshots (if appropriate):
Gravacao.de.Tela.2026-07-31.as.00.40.09.mov