mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 05:05:53 +00:00
Update whiteboard URLs again
This commit is contained in:
parent
afd5fd3f90
commit
2e517ec2c2
@ -17,6 +17,7 @@ export class WhiteboardWidgetComponent extends WidgetComponent {
|
|||||||
constructor(private nameService: NameService, public translate: TranslateService) {
|
constructor(private nameService: NameService, public translate: TranslateService) {
|
||||||
super(WIDGET_WHITEBOARD, "Whiteboard", "generic", translate, "whiteboard", "boardName");
|
super(WIDGET_WHITEBOARD, "Whiteboard", "generic", translate, "whiteboard", "boardName");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected OnWidgetsDiscovered(widgets: EditableWidget[]): void {
|
protected OnWidgetsDiscovered(widgets: EditableWidget[]): void {
|
||||||
console.log(widgets);
|
console.log(widgets);
|
||||||
for (const widget of widgets) {
|
for (const widget of widgets) {
|
||||||
@ -25,7 +26,7 @@ export class WhiteboardWidgetComponent extends WidgetComponent {
|
|||||||
const boardName = parsedUrl.query["boardName"];
|
const boardName = parsedUrl.query["boardName"];
|
||||||
|
|
||||||
// Set the new URL so that it unpacks correctly
|
// Set the new URL so that it unpacks correctly
|
||||||
widget.url = `https://cloud13.de/?whiteboardid=${boardName}`;
|
widget.url = `https://cloud13.de/testwhiteboard/?whiteboardid=${boardName}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -33,7 +34,7 @@ export class WhiteboardWidgetComponent extends WidgetComponent {
|
|||||||
protected OnNewWidgetPrepared(widget: EditableWidget): void {
|
protected OnNewWidgetPrepared(widget: EditableWidget): void {
|
||||||
const name = this.nameService.getHumanReadableName();
|
const name = this.nameService.getHumanReadableName();
|
||||||
|
|
||||||
let template = "https://cloud13.de/?whiteboardid=$roomId_$boardName";
|
let template = "https://cloud13.de/testwhiteboard/?whiteboardid=$roomId_$boardName";
|
||||||
if (this.whiteBoardWidget.options && this.whiteBoardWidget.options.defaultUrl) {
|
if (this.whiteBoardWidget.options && this.whiteBoardWidget.options.defaultUrl) {
|
||||||
template = this.whiteBoardWidget.options.defaultUrl;
|
template = this.whiteBoardWidget.options.defaultUrl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user