Update:New strings for translation #1103 #1166

This commit is contained in:
advplyr 2022-11-16 16:11:06 -06:00
parent c7794e00f6
commit c3ec036009
11 changed files with 116 additions and 18 deletions

View file

@ -87,19 +87,19 @@ export default {
this.socket.emit('auth', token)
if (!this.isFirstSocketConnection || this.socketConnectionToastId !== null) {
this.updateSocketConnectionToast('Socket Connected', 'success', 5000)
this.updateSocketConnectionToast(this.$strings.ToastSocketConnected, 'success', 5000)
}
this.isFirstSocketConnection = false
this.isSocketConnected = true
},
connectError() {
console.error('[SOCKET] connect error')
this.updateSocketConnectionToast('Socket Failed to Connect', 'error', null)
this.updateSocketConnectionToast(this.$strings.ToastSocketFailedToConnect, 'error', null)
},
disconnect() {
console.log('[SOCKET] Disconnected')
this.isSocketConnected = false
this.updateSocketConnectionToast('Socket Disconnected', 'error', null)
this.updateSocketConnectionToast(this.$strings.ToastSocketDisconnected, 'error', null)
},
reconnect() {
console.error('[SOCKET] reconnected')