show topbar in more situations
This commit is contained in:
		| @@ -1,3 +1,7 @@ | ||||
| # v0.8.1 | ||||
| - Update dependencies | ||||
| - Show topbar on form submit/page refresh | ||||
|  | ||||
| # v0.8.0 | ||||
| - Add search to catalog, ammo, container, tag and range index pages | ||||
| - Tweak urls for catalog, ammo, containers, tags and shot records | ||||
|   | ||||
| @@ -48,6 +48,8 @@ Alpine.start() | ||||
| topbar.config({ barColors: { 0: '#29d' }, shadowColor: 'rgba(0, 0, 0, .3)' }) | ||||
| window.addEventListener('phx:page-loading-start', info => topbar.show()) | ||||
| window.addEventListener('phx:page-loading-stop', info => topbar.hide()) | ||||
| window.addEventListener('submit', info => topbar.show()) | ||||
| window.addEventListener('beforeunload', info => topbar.show()) | ||||
|  | ||||
| // connect if there are any LiveViews on the page | ||||
| liveSocket.connect() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user