mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
39 lines
1.8 KiB
HTML
39 lines
1.8 KiB
HTML
|
<div class="dialog">
|
||
|
<div class="dialog-header">
|
||
|
<h4>{{ isAdding ? "Add a new" : "Edit" }} self-hosted Telegram bridge</h4>
|
||
|
</div>
|
||
|
<div class="dialog-content">
|
||
|
<p>Self-hosted Telegram bridges must have <code>provisioning</code> enabled in the configuration.</p>
|
||
|
|
||
|
<label class="label-block">
|
||
|
Provisioning URL
|
||
|
<span class="text-muted ">The provisioning URL for the bridge. This is the public address for the bridge followed by the provisioning prefix given in the configuration.</span>
|
||
|
<input type="text" class="form-control"
|
||
|
placeholder="http://localhost:9999/_matrix/provision/v1"
|
||
|
[(ngModel)]="provisionUrl" [disabled]="isSaving"/>
|
||
|
</label>
|
||
|
|
||
|
<label class="label-block">
|
||
|
Shared Secret
|
||
|
<span class="text-muted ">The shared secret defined in the configuration for provisioning.</span>
|
||
|
<input type="text" class="form-control"
|
||
|
placeholder="some_secret_value"
|
||
|
[(ngModel)]="sharedSecret" [disabled]="isSaving"/>
|
||
|
</label>
|
||
|
|
||
|
<label class="label-block">
|
||
|
Promote Puppeting
|
||
|
<span class="text-muted ">If enabled, Dimension will recommend that users log in to their Telegram accounts.</span>
|
||
|
<ui-switch [checked]="allowPuppets" size="small" [disabled]="isSaving"
|
||
|
(change)="allowPuppets = !allowPuppets"></ui-switch>
|
||
|
</label>
|
||
|
</div>
|
||
|
<div class="dialog-footer">
|
||
|
<button type="button" (click)="add()" title="close" class="btn btn-primary btn-sm">
|
||
|
<i class="far fa-save"></i> Save
|
||
|
</button>
|
||
|
<button type="button" (click)="dialog.close()" title="close" class="btn btn-secondary btn-sm">
|
||
|
<i class="far fa-times-circle"></i> Cancel
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|