hardlounge/client/js
Maxime Poulin 2ce374fe85 Fix uploader mount/unmount lifecycle
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.
2023-02-05 22:32:12 -05:00
..
commands TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
helpers Added client type checking to webpack (#4619) 2022-08-23 00:26:07 -07:00
hooks TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
socket-events search: ignore searchResults if it isn't the active query 2023-01-08 11:41:09 +01:00
auth.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
autocompletion.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
clipboard.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
constants.ts allow away and back to be collapsed 2022-12-30 13:35:38 +01:00
eventbus.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
keybinds.ts keybinds: Fix invalid return 2022-11-16 06:50:56 +01:00
loading-error-handlers.js TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
localStorage.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
location.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
router.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
settings.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
socket.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
store-settings.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
store.ts search: ignore searchResults if it isn't the active query 2023-01-08 11:41:09 +01:00
types.d.ts remove VueApp from router 2022-11-22 21:27:19 +01:00
upload.ts Fix uploader mount/unmount lifecycle 2023-02-05 22:32:12 -05:00
vue.ts remove VueApp from router 2022-11-22 21:27:19 +01:00
webpush.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00