?
avatar sandramay0905
sandramay0905
1 Jun 2021

Is your feature request related to a problem? Please describe.

1. After click on Redirect System Plugin

image

2. a modal open to enable the plugin:

image

3. after Save & Close in the modale the same message is shown like in step 1.

Describe the solution you'd like

A message similar to other components that the plugin is enabled. This happen now if user reload the page:
image

avatar sandramay0905 sandramay0905 - open - 1 Jun 2021
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jun 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Jun 2021
avatar PhilETaylor
PhilETaylor - comment - 1 Jun 2021

This because you are doing all the work in the model but the parent page doesn't know to reload automatically after you save and close the modal...

avatar dgrammatiko
dgrammatiko - comment - 1 Jun 2021

but the parent page doesn't know to reload automatically after you save and close the modal...

There's an event modal.bs.close (or something like that) that is fired when the modal closes so you can listen for that event on the specific modal and just do a location.reload();. Has a drawback that it will reload even if cancel was pressed but getting the state from the iframe is not something that the project has a known way to deal with it...

avatar brianteeman
brianteeman - comment - 1 Jun 2021

We already do something like this on the admin dashboard when you add a new module

avatar brianteeman
brianteeman - comment - 1 Jun 2021

const elementH = document.querySelector('#moduleDashboardAddModal');
if (elementH) {
elementH.addEventListener('hide.bs.modal', () => {
hideButtons.forEach((button) => {
button.classList.add('hidden');
});
});
elementH.addEventListener('hidden.bs.modal', () => {
if (isSaving) {
setTimeout(() => { window.parent.location.reload(); }, 1000);
}

avatar sandramay0905 sandramay0905 - change - 7 Aug 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-08-07 08:08:03
Closed_By sandramay0905
Labels Added: ?
Removed: ?
avatar sandramay0905 sandramay0905 - close - 7 Aug 2021

Add a Comment

Login with GitHub to post a comment