Changed notify duration
This commit is contained in:
@@ -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: [{
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user