Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Actions logs toolbar #24562

Merged
merged 3 commits into from
Apr 15, 2019
Merged

[4.0] Actions logs toolbar #24562

merged 3 commits into from
Apr 15, 2019

Conversation

brianteeman
Copy link
Contributor

All components only have the options and help on the right hand side this PR brings the action logs component into sync

Before

image

After

image

All components only have the options and help on the right hand side this PR brings the action logs component into sync
@ghost ghost added the J4 Issue label Apr 12, 2019
@@ -98,12 +98,12 @@ protected function addToolbar()
{
JToolbarHelper::title(JText::_('COM_ACTIONLOGS_MANAGER_USERLOGS'), 'list-2');

JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'actionlogs.delete');
JToolBarHelper::custom('actionlogs.exportSelectedLogs', 'download', '', 'COM_ACTIONLOGS_EXPORT_CSV', true);
JToolBarHelper::custom('actionlogs.exportLogs', 'download', '', 'COM_ACTIONLOGS_EXPORT_ALL_CSV', false); JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'actionlogs.delete');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
JToolBarHelper::custom('actionlogs.exportLogs', 'download', '', 'COM_ACTIONLOGS_EXPORT_ALL_CSV', false); JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'actionlogs.delete');
JToolBarHelper::custom('actionlogs.exportLogs', 'download', '', 'COM_ACTIONLOGS_EXPORT_ALL_CSV', false);
JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'actionlogs.delete');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this was deliberate to put the delete actions at the end of the list see Banners/tracks as an example

Copy link
Contributor

@Quy Quy Apr 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coding style: This is only moving JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'actionlogs.delete'); to the next line and not be on the same line 102.

…html.php

Co-Authored-By: brianteeman <brian@teeman.net>
@ghost ghost removed the J4 Issue label Apr 13, 2019
@chmst
Copy link
Contributor

chmst commented Apr 13, 2019

You could

use Joomla\CMS\Toolbar\Toolbar;

for Toolbar like in other views.


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

@brianteeman
Copy link
Contributor Author

I deliberately didn't do any namespacing here as it makes sense to do all of that in its own pr. Single purpose pr are much easier for people to test.

@richard67
Copy link
Member

I have tested this item ✅ successfully on 4236002


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

1 similar comment
@alikon
Copy link
Contributor

alikon commented Apr 13, 2019

I have tested this item ✅ successfully on 4236002


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

@ghost ghost added the J4 Issue label Apr 13, 2019
@ghost
Copy link

ghost commented Apr 13, 2019

Status "Ready To Commit".

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Apr 13, 2019
@ghost ghost removed the J4 Issue label Apr 13, 2019
@wilsonge wilsonge merged commit 6b2b285 into joomla:4.0-dev Apr 15, 2019
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Apr 15, 2019
@wilsonge
Copy link
Contributor

Thanks!

@wilsonge wilsonge added this to the Joomla 4.0 milestone Apr 15, 2019
@brianteeman
Copy link
Contributor Author

thanks

@brianteeman brianteeman deleted the twelve branch April 15, 2019 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants