Skip to content

Commit f5c6f72

Browse files
pkp/pkp-lib#11897 Reload page after toggling public comments settings
1 parent 0e21d51 commit f5c6f72

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/Container/SettingsPage.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ export default {
110110
}
111111
}
112112
113+
// Add or remove the content navigation link by reloading the page,
114+
// since the content menu is handled by app-specific server-side code
115+
// to avoid managing it in the frontend, as it's shared across other apps.
116+
if (formId === pkp.const.FORM_CONTENT_COMMENT) {
117+
window.location.reload();
118+
}
119+
113120
// Update allowed pubObjects for DOI assignment on registration agency change
114121
if (formId === pkp.const.FORM_DOI_REGISTRATION_SETTINGS) {
115122
const newlyEnabledPlugin = context.registrationAgency;

0 commit comments

Comments
 (0)