Fix notifier messages/titles.
This commit is contained in:
parent
63d8e9789e
commit
8dede18070
@ -241,9 +241,9 @@ function register (clientOptions: RegisterClientOptions): void {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
peertubeHelpers.notifier.error('Room list failed')
|
peertubeHelpers.notifier.error(error.toString(), await peertubeHelpers.translate(LOC_LOADING_ERROR))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -193,7 +193,7 @@ export class ChannelEmojisElement extends LivechatElement {
|
|||||||
await this.ptTranslate(LOC_ACTION_IMPORT_EMOJIS_INFO)
|
await this.ptTranslate(LOC_ACTION_IMPORT_EMOJIS_INFO)
|
||||||
)
|
)
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
this.ptNotifier.error(err.toString())
|
this.ptNotifier.error(err.toString(), await this.ptTranslate(LOC_ERROR))
|
||||||
} finally {
|
} finally {
|
||||||
this.actionDisabled = false
|
this.actionDisabled = false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user