32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-25 01:45:59 +00:00

Do not show Empty Trash button for empty state

This commit is contained in:
Tuan Pham Ngoc 2021-10-02 12:02:33 +07:00
parent 4d8a5c532d
commit f1ef9662d0

View File

@ -182,7 +182,7 @@ class HtmlView extends BaseHtmlView
} }
} }
if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) if (!$this->isEmptyState && $this->state->get('filter.published') == -2 && $canDo->get('core.delete'))
{ {
$toolbar->delete('weblinks.delete') $toolbar->delete('weblinks.delete')
->text('JTOOLBAR_EMPTY_TRASH') ->text('JTOOLBAR_EMPTY_TRASH')