2ce374fe85
Currently, in `ChatInput.vue` we call `upload.abort()` which removes the event listeners, which are never added back. This effectively permanently disable uploads if the user navigates away to Settings or any other non-chat pages, and back. Moves the binding to `mounted()` so that they're properly rebound when a chat window is in view, and also adds an `unmounted()` for clarity. This should also fix an edge case if the page opens up on a non-chat page and there was never a ChatInput to unbind it, such as login page or add network pages. |
||
---|---|---|
.. | ||
commands | ||
helpers | ||
hooks | ||
socket-events | ||
auth.ts | ||
autocompletion.ts | ||
clipboard.ts | ||
constants.ts | ||
eventbus.ts | ||
keybinds.ts | ||
loading-error-handlers.js | ||
localStorage.ts | ||
location.ts | ||
router.ts | ||
settings.ts | ||
socket.ts | ||
store-settings.ts | ||
store.ts | ||
types.d.ts | ||
upload.ts | ||
vue.ts | ||
webpush.ts |