? NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar C-Lodder
C-Lodder
18 Feb 2019

Summary of Changes

This is a continuation of the initial prototype I did: joomla/40-backend-template#251

In the control panel, we have a cog icon that directs you to the settings for that module. Now, it displays a dropdown with a new option to directly unpublish the module. Upon doing so, it will instantly disappear from the display.

Testing Instructions

  1. Fetch the code
  2. Run npm i (apologies)
  3. Login to the your Joomla admin
  4. Click the "cog" icon for any module and select "Unpublish" from the dropdown

Note

There are some changes to other files which keeps the dropdowns in other areas of the admin template intact.

avatar C-Lodder C-Lodder - open - 18 Feb 2019
avatar C-Lodder C-Lodder - change - 18 Feb 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Feb 2019
Category Administration com_cpanel Language & Strings Modules Templates (admin) JavaScript Repository
avatar C-Lodder C-Lodder - change - 18 Feb 2019
Labels Added: ? ?
avatar C-Lodder
C-Lodder - comment - 18 Feb 2019

@brianteeman All done. Thanks

avatar brianteeman
brianteeman - comment - 18 Feb 2019

I have tested this item successfully on d88d161


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23934.

avatar brianteeman brianteeman - test_item - 18 Feb 2019 - Tested successfully
avatar infograf768
infograf768 - comment - 18 Feb 2019

Drone throws errors for javascript-cs

avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2019
Category Administration com_cpanel Language & Strings Modules Templates (admin) JavaScript Repository Administration com_cpanel Language & Strings Modules Templates (admin) JavaScript Repository NPM Change
avatar coolcat-creations
coolcat-creations - comment - 19 Feb 2019

Thats a great improvement,
I tested it but the unpublish link does not do anything. The edit link works.

I'd open a seperate issue with following problem:
If you edit the module and close it, you end up in the module manager. It would be good to implement a refererlink on such icons so when you close something you get back to where you came from.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23934.

avatar coolcat-creations
coolcat-creations - comment - 19 Feb 2019

Thats a great improvement,
I tested it but the unpublish link does not do anything. The edit link works.

I'd open a seperate issue with following problem:
If you edit the module and close it, you end up in the module manager. It would be good to implement a refererlink on such icons so when you close something you get back to where you came from.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23934.

avatar C-Lodder
C-Lodder - comment - 20 Feb 2019

Thanks Elisa. I'll add the refer link.
Shame it doesnt work for you though. Do you get any console errors?

avatar brianteeman
brianteeman - comment - 20 Feb 2019

@coolcat-creations are you sure you ran npm i after applying the patch. If you didnt then the dropdown appears but the functionality behind it is not present

avatar infograf768 infograf768 - change - 20 Feb 2019
Labels Added: NPM Resource Changed
avatar infograf768
infograf768 - comment - 20 Feb 2019

Unpublish works fine here.
@C-Lodder
Shall we wait for the redirect depending on the origin of the edit to RTC this patch?

avatar C-Lodder
C-Lodder - comment - 20 Feb 2019

If that feature is the correct approach then sure

avatar brianteeman
brianteeman - comment - 20 Feb 2019

Regarding the "return"

This issue is common in very many places. eg adding a note to a user

avatar infograf768
infograf768 - comment - 20 Feb 2019

I do think indeed it makes sense to redirect to CPanel when editing the module from there.
Now, tbh, this new feature implies a lot of code for not much gain. But that's only me.

avatar C-Lodder
C-Lodder - comment - 20 Feb 2019

I'll leave it up to your guys then. RTC if you want or I can add the redirect in.

avatar infograf768
infograf768 - comment - 20 Feb 2019

+1 for redirecting to CPanel.
It is not because it does not work elsewhere that we should not do it when we think of it

avatar brianteeman
brianteeman - comment - 20 Feb 2019

It is not because it does not work elsewhere that we should not do it when we think of it

Just pointing out that it needs to be done in multiple places not just here

avatar C-Lodder
C-Lodder - comment - 20 Feb 2019

On second thoughts, adding a redirect is out of scope of this PR. This is purely to add support for unpublishing a module via the front-end and does not touch how the edit functionality works.

@coolcat-creations @infograf768 Please create a separate issue

avatar C-Lodder
C-Lodder - comment - 27 Feb 2019

@wilsonge conflicts resolved

avatar C-Lodder
C-Lodder - comment - 6 Mar 2019

@wilsonge conflicts resolved again

avatar infograf768
infograf768 - comment - 8 Mar 2019

Restarted drone...

avatar infograf768 infograf768 - test_item - 9 Mar 2019 - Tested successfully
avatar infograf768
infograf768 - comment - 9 Mar 2019

I have tested this item successfully on 952d583


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23934.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Mar 2019

@brianteeman can you please retest?

avatar infograf768
infograf768 - comment - 10 Mar 2019

I have tested this item successfully on a1b150b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23934.

avatar infograf768 infograf768 - test_item - 10 Mar 2019 - Tested successfully
avatar infograf768
infograf768 - comment - 11 Mar 2019

@coolcat-creations
Please test so that we can go on with the return.

avatar infograf768
infograf768 - comment - 11 Mar 2019

I have tested this item successfully on 52fb2cb


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23934.

avatar infograf768 infograf768 - test_item - 11 Mar 2019 - Tested successfully
avatar wilsonge wilsonge - change - 20 Mar 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-03-20 13:58:46
Closed_By wilsonge
avatar wilsonge wilsonge - close - 20 Mar 2019
avatar wilsonge wilsonge - merge - 20 Mar 2019
avatar wilsonge
wilsonge - comment - 20 Mar 2019

Thankyou!

avatar infograf768
infograf768 - comment - 21 Mar 2019

Please test #24109 for the redirection.

Add a Comment

Login with GitHub to post a comment