Fixing badge links on mobile, closing sidebar on clicked links

This commit is contained in:
Ronan Berder
2025-05-07 18:58:42 +08:00
parent 733c7f9301
commit 7dd05d4473
12 changed files with 26 additions and 23 deletions
+4 -2
View File
@@ -10,8 +10,10 @@ window.basecoat.registerToast = function(Alpine) {
timeoutId: null,
init() {
this.timeoutDuration = config.duration || (config.category === 'error' ? 5000 : 3000);
this.timeoutId = setTimeout(() => { this.close() }, this.timeoutDuration);
if (config.duration !== -1) {
this.timeoutDuration = config.duration || (config.category === 'error' ? 5000 : 3000);
this.timeoutId = setTimeout(() => { this.close() }, this.timeoutDuration);
}
this.open = true;
this.$watch('$store.toaster.isPaused', (isPaused) => {
if (!this.open) return;