karh
April 6, 2021, 11:37am
1
In the 3.7.0 release notes I can see that the toast messages should be working with BS5
However when I set up a ‘show toast’ message through a dynamic event I see that it’s still adding the dmxBootstrap4Toasts.js
I can’t see a dmxBootstrap5Toasts.js
Is this a bug or still on the todo list?
karh
April 14, 2021, 10:36am
2
Gentle bump.
This plus Bootstrap 5 Icons in Wappler are our only bottlenecks to fully utilize BS5
George
April 14, 2021, 10:39am
3
Just rename dmxBootstrap4Toasts to dmxBootstrap5Toasts in the include code.
Folders will be copied and created automatically.
Automatic conversion from Bootstrap 4 to 5 will be adjusted in the next update but that will be only for full new conversions.
karh
April 14, 2021, 11:40am
4
@George
Renaming it in the layout page did generate a file as you said.
However the toasts aren’t showing anything (I think it’s relying on Jquery still):
I’ve included that layout on my page
I’ve made a button that triggers a flow on click: it should show a notification + a toast
Notification does show. Toast does not. Error in console:
toasts.js:56 Uncaught (in promise) ReferenceError: $ is not defined
at Object.show (toasts.js:56)
at n.toast.show (toasts.js:8)
at n._execStep (flow.js:83)
at flow.js:37
PS I also can’t add the toast element on the page as component
George
April 14, 2021, 11:42am
5
you have both boostrap4 Toasts and Bootstrap5 toasts included - should be just the later
karh
April 14, 2021, 11:48am
6
Ah yes it automatically added that when creating the flow again.
Anyhow - just removed BS4 toasts, still same:
George
April 14, 2021, 12:01pm
7
I see, you need to change also dmx-bs4-toasts, to: dmx-bs5-toasts
in your code
karh
April 14, 2021, 12:30pm
8
George:
dmx-bs4-toasts
Sorry, where can I find that?
If you mean this one in the view, I've changed this to bootstrap5 toasts
Teodor
April 14, 2021, 12:40pm
9
Please wait until this weeks update, when the issues with the Toast component for BS5 will be fixed.
1 Like
patrick
Closed
April 16, 2021, 4:00pm
13
This topic was automatically closed after 24 hours. New replies are no longer allowed.