Feat: Add note if PR appears to have been merged

This commit is contained in:
Squidly271
2025-09-18 01:38:35 -04:00
committed by GitHub
parent 1f9bd5911b
commit 4699b4de6d

View File

@@ -271,7 +271,14 @@ Link='nav-user'
<script>
$(function() {
// Check for updates (non-dismissible)
caPluginUpdateCheck("webgui-pr-PR_PLACEHOLDER.plg", {noDismiss: true});
caPluginUpdateCheck("webgui-pr-PR_PLACEHOLDER.plg", {noDismiss: true},function(result){
try {
let json = JSON.parse(result);
if ( ! json.version ) {
addBannerWarning("Note: webgui-pr-PR_PLACEHOLDER has either been merged or removed");
}
} catch(e) {}
});
// Create banner with uninstall link (nondismissible)
let bannerMessage = "Modified GUI installed via <b>webgui-pr-PR_PLACEHOLDER</b> plugin. " +