Changed notify duration

This commit is contained in:
Luca Haid
2024-11-27 13:17:49 +00:00
parent ef5e2b151e
commit 465509a0c6
5 changed files with 29 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ document.addEventListener('DOMContentLoaded', () => {
// @formatter:on
const notyf = new Notyf({
duration: 10000, position: {
duration: 6000, position: {
x: 'right', y: 'bottom',
}, ripple: true, dismissible: true, fontSize: '32px',
types: [{
+6 -2
View File
@@ -44,14 +44,18 @@ Vue.component('tt-modal', {
this.$emit('submit')
}
}
}, //language=Vue
},
data() {
return {window: window, isMobile: navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i) !== null}
},
//language=Vue
template: `
<div class="modal show d-block"
role="dialog"
tabindex="-1"
style="background: rgba(0, 0, 0, 0.5);"
ref="modal"
@mousedown="$emit('update:show', false)"
@mousedown="!isMobile ? $emit('update:show', false) : null"
@keydown.esc="$emit('update:show', false)"
v-if="show">
<div class="modal-dialog modal-lg modal-dialog-scrollable" role="document" @mousedown.stop>