2018-09-16 04:26:10 -04:00
< div class = "dialog" >
< div class = "dialog-header" >
2020-10-23 07:30:20 -04:00
< h4 > {{'self-hosted Telegram bridge' | translate}} ({{ isAdding ? "Add a new" : "Edit" }})< / h4 >
2018-09-16 04:26:10 -04:00
< / div >
< div class = "dialog-content" >
2020-10-23 07:30:20 -04:00
< p > {{'Self-hosted Telegram bridges must have' | translate}} < code > {{'provisioning' | translate}}< / code > {{'enabled in the configuration.' | translate}}< / p >
2018-09-16 04:26:10 -04:00
< label class = "label-block" >
2020-10-23 07:30:20 -04:00
{{'Provisioning URL' | translate}}
< 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.' | translate}}< / span >
2018-09-16 04:26:10 -04:00
< input type = "text" class = "form-control"
placeholder="http://localhost:9999/_matrix/provision/v1"
[(ngModel)]="provisionUrl" [disabled]="isSaving"/>
< / label >
< label class = "label-block" >
2020-10-23 07:30:20 -04:00
{{'Shared Secret' | translate}}
< span class = "text-muted " > {{'The shared secret defined in the configuration for provisioning.' | translate}}< / span >
2018-09-16 04:26:10 -04:00
< input type = "text" class = "form-control"
placeholder="some_secret_value"
[(ngModel)]="sharedSecret" [disabled]="isSaving"/>
< / label >
< label class = "label-block" >
2020-10-23 07:30:20 -04:00
{{'Promote Telegram Puppeting' | translate}}
< span class = "text-muted " > {{'If enabled, Dimension will recommend that users log in to their Telegram accounts.' | translate}}< / span >
2018-10-17 23:09:19 -04:00
< ui-switch [ checked ] = " allowTgPuppets " size = "small" [ disabled ] = " isSaving "
(change)="allowTgPuppets = !allowTgPuppets">< / ui-switch >
< / label >
< label class = "label-block" >
2020-10-23 07:30:20 -04:00
{{'Promote Matrix Puppeting' | translate}}
< span class = "text-muted " > {{'If enabled, Dimension will recommend that users log in to their Matrix accounts.' | translate}}< / span >
2018-10-17 23:09:19 -04:00
< ui-switch [ checked ] = " allowMxPuppets " size = "small" [ disabled ] = " isSaving "
(change)="allowMxPuppets = !allowMxPuppets">< / ui-switch >
2018-09-16 04:26:10 -04:00
< / label >
< / div >
< div class = "dialog-footer" >
< button type = "button" ( click ) = " add ( ) " title = "close" class = "btn btn-primary btn-sm" >
2020-10-23 07:30:20 -04:00
< i class = "far fa-save" > < / i > {{'Save' | translate}}
2018-09-16 04:26:10 -04:00
< / button >
< button type = "button" ( click ) = " dialog . close ( ) " title = "close" class = "btn btn-secondary btn-sm" >
2020-10-23 07:30:20 -04:00
< i class = "far fa-times-circle" > < / i > {{'Cancel' | translate}}
2018-09-16 04:26:10 -04:00
< / button >
< / div >
2020-10-23 07:30:20 -04:00
< / div >