From 3140b467b2b343f33955e6e0f399b4238ce2c136 Mon Sep 17 00:00:00 2001 From: nurjinn jafar Date: Wed, 2 Sep 2020 09:56:08 +0200 Subject: [PATCH] widget whiteboard added in widget model and in integrations registry --- web/app/shared/models/widget.ts | 1 + web/app/shared/registry/integrations.registry.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/web/app/shared/models/widget.ts b/web/app/shared/models/widget.ts index 37d853a..9c9c06b 100644 --- a/web/app/shared/models/widget.ts +++ b/web/app/shared/models/widget.ts @@ -11,6 +11,7 @@ export const WIDGET_TWITCH = ["twitch", "dimension-twitch"]; // TODO: m.* namesp export const WIDGET_STICKER_PICKER = ["m.stickerpicker"]; export const WIDGET_TRADINGVIEW = ["tradingview", "dimension-tradingview"]; // TODO: Use m.tradingview (https://github.com/turt2live/matrix-dimension/issues/261) export const WIDGET_SPOTIFY = ["m.spotify", "spotify", "dimension-spotify"]; +export const WIDGET_WHITEBOARD = ["whiteboard", "phoenix-whiteboard"]; export interface EditableWidget { /** diff --git a/web/app/shared/registry/integrations.registry.ts b/web/app/shared/registry/integrations.registry.ts index 3d902b9..7024c82 100644 --- a/web/app/shared/registry/integrations.registry.ts +++ b/web/app/shared/registry/integrations.registry.ts @@ -10,7 +10,8 @@ import { WIDGET_STICKER_PICKER, WIDGET_TRADINGVIEW, WIDGET_TWITCH, - WIDGET_YOUTUBE + WIDGET_YOUTUBE, + WIDGET_WHITEBOARD } from "../models/widget"; import { FE_Integration } from "../models/integration"; @@ -65,6 +66,9 @@ export class IntegrationsRegistry { "stickerpicker": { types: WIDGET_STICKER_PICKER, }, + "whiteboard": { + type: WIDGET_WHITEBOARD, + } }, };