From 8dede18070a49052883bdbcf356d7d38d3763616 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Thu, 13 Jun 2024 15:01:31 +0200 Subject: [PATCH] Fix notifier messages/titles. --- client/admin-plugin-client-plugin.ts | 4 ++-- client/common/configuration/elements/channel-emojis.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/admin-plugin-client-plugin.ts b/client/admin-plugin-client-plugin.ts index 140df048..4233e525 100644 --- a/client/admin-plugin-client-plugin.ts +++ b/client/admin-plugin-client-plugin.ts @@ -241,9 +241,9 @@ function register (clientOptions: RegisterClientOptions): void { } }) } - } catch (error) { + } catch (error: any) { console.error(error) - peertubeHelpers.notifier.error('Room list failed') + peertubeHelpers.notifier.error(error.toString(), await peertubeHelpers.translate(LOC_LOADING_ERROR)) } } }) diff --git a/client/common/configuration/elements/channel-emojis.ts b/client/common/configuration/elements/channel-emojis.ts index 914b8461..4fbdc0bc 100644 --- a/client/common/configuration/elements/channel-emojis.ts +++ b/client/common/configuration/elements/channel-emojis.ts @@ -193,7 +193,7 @@ export class ChannelEmojisElement extends LivechatElement { await this.ptTranslate(LOC_ACTION_IMPORT_EMOJIS_INFO) ) } catch (err: any) { - this.ptNotifier.error(err.toString()) + this.ptNotifier.error(err.toString(), await this.ptTranslate(LOC_ERROR)) } finally { this.actionDisabled = false }