From 5f214ab7f9a197647aa984410581144293463160 Mon Sep 17 00:00:00 2001 From: shibao Date: Sun, 22 Jan 2023 23:16:36 -0500 Subject: [PATCH] show topbar in more situations --- CHANGELOG.md | 4 ++++ assets/js/app.js | 2 ++ mix.exs | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24418ded..eb522c87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/assets/js/app.js b/assets/js/app.js index 4c3e2731..99d8d26f 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -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() diff --git a/mix.exs b/mix.exs index 2e0aaf0e..789fde87 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Cannery.MixProject do def project do [ app: :cannery, - version: "0.8.0", + version: "0.8.1", elixir: "1.14.1", elixirc_paths: elixirc_paths(Mix.env()), compilers: Mix.compilers(),