mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 05:05:53 +00:00
Merge pull request #434 from TheTimeWalker/etherpad-length-fix
Reduce roomID length, limit Pad Name to 39 characters
This commit is contained in:
commit
a95ffa05d0
@ -3,6 +3,7 @@
|
||||
<label class="label-block">
|
||||
{{'Pad Name' | translate}}
|
||||
<input type="text" class="form-control"
|
||||
maxlength="39"
|
||||
placeholder="{{ defaultName }}"
|
||||
[(ngModel)]="widget.dimension.newName" name="widget-name-{{widget.id}}"
|
||||
[disabled]="isUpdating"/>
|
||||
|
@ -40,7 +40,7 @@ export class EtherpadWidgetConfigComponent extends WidgetComponent {
|
||||
template = this.etherpadWidget.options.defaultUrl;
|
||||
}
|
||||
|
||||
template = template.replace("$roomId", encodeURIComponent(SessionStorage.roomId));
|
||||
template = template.replace("$roomId", encodeURIComponent(SessionStorage.roomId).slice(0, 10));
|
||||
template = template.replace("$padName", encodeURIComponent(name));
|
||||
|
||||
widget.dimension.newUrl = template;
|
||||
|
Loading…
Reference in New Issue
Block a user