? ? Pending

User tests: Successful: Unsuccessful:

avatar coolcat-creations
coolcat-creations
25 Apr 2020

Pull Request for Issue #28263

Summary of Changes

Added a parameter $class to the modal buttons with default to btn-primary
Added the class btn-danger to the delete button

Testing Instructions

Apply the patch
Go to the template Manager into the files edit section, select a file and see if the delete file button is red (icon and hover)

Expected result

Button has class btn-danger and hovers red

Actual result

Button has class btn-primary and hovers blue

Documentation Changes Required

no

avatar coolcat-creations coolcat-creations - open - 25 Apr 2020
avatar coolcat-creations coolcat-creations - change - 25 Apr 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2020
Category Administration com_templates Libraries
avatar coolcat-creations coolcat-creations - change - 25 Apr 2020
Title
Change hardcoded class and add as parameter
[4.0] Atum - Change hardcoded class of delete button and add as parameter
avatar coolcat-creations coolcat-creations - edited - 25 Apr 2020
avatar richard67
richard67 - comment - 25 Apr 2020

@coolcat-creations PHPCS check by drone complains that there is a doc block comment missing for the new parameter. You know how to fix that? If not, ping me.

avatar brianteeman
brianteeman - comment - 25 Apr 2020

Insert on line 699
* @param string $class The button class

avatar coolcat-creations coolcat-creations - change - 25 Apr 2020
Labels Added: ?
avatar coolcat-creations
coolcat-creations - comment - 25 Apr 2020

Insert on line 699
* @param string $class The button class

Thank you

avatar alikon
alikon - comment - 25 Apr 2020

I have tested this item successfully on 71dfbee


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

avatar alikon alikon - test_item - 25 Apr 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 25 Apr 2020

I have tested this item successfully on 71dfbee


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

avatar infograf768 infograf768 - test_item - 25 Apr 2020 - Tested successfully
avatar infograf768 infograf768 - change - 25 Apr 2020
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 25 Apr 2020

RTC


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

avatar richard67
richard67 - comment - 25 Apr 2020

PHPCS errors!

avatar infograf768
infograf768 - comment - 25 Apr 2020

Please correct cs

Screen Shot 2020-04-25 at 16 59 38

avatar infograf768 infograf768 - change - 25 Apr 2020
Status Ready to Commit Pending
avatar infograf768
infograf768 - comment - 25 Apr 2020

Back to pending


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

3c194b5 25 Apr 2020 avatar richard67 PHPCS
avatar richard67
richard67 - comment - 25 Apr 2020

Fixed the PHPCS. I hope @coolcat-creations allowed me.

avatar alikon alikon - change - 25 Apr 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 25 Apr 2020

RTC

as changes was only CS


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

avatar richard67 richard67 - change - 25 Apr 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-04-25 15:34:42
Closed_By richard67
Labels Added: ?
avatar richard67 richard67 - close - 25 Apr 2020
avatar richard67 richard67 - merge - 25 Apr 2020
avatar richard67
richard67 - comment - 25 Apr 2020

Thanks all.

avatar obuisard
obuisard - comment - 25 Apr 2020

I have tested this item successfully on 3c194b5


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

avatar obuisard obuisard - test_item - 25 Apr 2020 - Tested successfully

Add a Comment

Login with GitHub to post a comment