[5.0] Fix, Hide toolbar in modal when it not in use#41578
[5.0] Fix, Hide toolbar in modal when it not in use#41578Fedik wants to merge 10 commits intojoomla:5.0-devfrom
Conversation
|
I have tested this item ✅ successfully on 63b034b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41578. |
1 similar comment
|
I have tested this item ✅ successfully on 63b034b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41578. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41578. |
|
Wait, @obuisard found double toolbar in media modal. |
|
Should be good now also for Media. |
|
Back to pending. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41578. |
|
Fedir @Fedik the media modal is now working properly |
✅ "New article" uses new ModalField, so it is okay , |
I confirm. Also Could not find where tags could be created in modal. |
|
newsfeed should be good now |
| } | ||
|
|
||
| $this->addToolbar(); | ||
| if ($this->getLayout() !== 'modal') { |
There was a problem hiding this comment.
Sorry to nitpick. In the other files, you assigned it to $isModal.
There was a problem hiding this comment.
it need there, because emptystate layout, and here it not in use
|
I will set it as Draft for now. |
|
Please test alternative fix #41600 |

Pull Request for Issue #41572 .
Summary of Changes
Hide toolbar on empty state, in modal.
Because
$this->setLayout('emptystate');override the layout value the conditionif ($this->getLayout() !== 'modal')never work.Testing Instructions
On installation without articles.
Try select an article for menu. Also Category, Contact, Tags
Also try to add a module to dashboard.
Actual result BEFORE applying this Pull Request
You get a toolbar in modal
Expected result AFTER applying this Pull Request
No toolbar
Link to documentations
Please select:
Reference: