Skip to content

Commit

Permalink
Make toolbar for mail-template as other layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
chmst committed Jul 25, 2024
1 parent a03c8ad commit 7ec72da
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions administrator/components/com_mails/src/View/Template/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,11 @@ protected function addToolbar()
'pencil-2 article-add'
);

$saveGroup = $toolbar->dropdownButton('save-group');

$saveGroup->configure(
function (Toolbar $childBar) {
$childBar->apply('template.apply');
$childBar->save('template.save');
}
);

$toolbar->apply('template.apply');
$toolbar->divider();
$toolbar->save('template.save');
$toolbar->divider();
$toolbar->cancel('template.cancel', 'JTOOLBAR_CLOSE');

$toolbar->divider();
$toolbar->help('Mail_Template:_Edit');
}
Expand Down

0 comments on commit 7ec72da

Please sign in to comment.