2021-11-30 21:25:35 -05:00
< my-bridge-config [ bridgeComponent ] = " this " >
< ng-template # bridgeParamsTemplate >
< my-ibox [ isCollapsible ] = " false " >
< h5 class = "my-ibox-title" >
{{'Bridge to Jira' | translate}}
< / h5 >
< div class = "my-ibox-content" * ngIf = "loadingConnections" >
< my-spinner > < / my-spinner >
< / div >
< div class = "my-ibox-content" * ngIf = "!loadingConnections" >
2021-12-01 16:35:16 -05:00
< div * ngIf = "isBridged" >
< p > {{'This room is bridged to' | translate}} < a [ href ] = " bridgedProjectUrl " rel = "noopener" target = "_blank" > {{bridgedProjectUrlUnsafe}}< / a > < / p >
< button type = "button" class = "btn btn-sm btn-danger" [ disabled ] = " isBusy " ( click ) = " unbridgeRoom ( ) " >
{{'Unbridge' | translate}}
< / button >
< / div >
< div * ngIf = "!isBridged && authUrl" >
2021-11-30 21:25:35 -05:00
< p >
{{'In order to bridge to Jira, you\'ll need to authorize the bridge to access your organization(s). Please click the button below to do so.' | translate}}
< / p >
2021-12-01 16:35:16 -05:00
< a [ href ] = " authUrl " rel = "noopener" target = "_blank" class = "btn btn-lg btn-link" >
< img src = "/assets/img/avatars/jira.png" width = "35" / > {{'Sign in with Jira' | translate}}
2021-11-30 21:25:35 -05:00
< / a >
< / div >
2021-12-01 16:35:16 -05:00
< div * ngIf = "!isBridged && !authUrl" >
2021-11-30 21:25:35 -05:00
< label class = "label-block" >
2021-12-01 16:35:16 -05:00
{{'Instance / Organization' | translate}}
< select class = "form-control form-control-sm" [ ( ngModel ) ] = " instance "
(change)="loadProjects()" [disabled]="isBusy">
< option * ngFor = "let instance of instances" [ ngValue ] = " instance " >
{{ instance.name }} ({{ instance.url }})
2021-11-30 21:25:35 -05:00
< / option >
< / select >
< / label >
< label class = "label-block" >
2021-12-01 16:35:16 -05:00
{{'Project' | translate}}
< select class = "form-control form-control-sm" [ ( ngModel ) ] = " project " [ disabled ] = " isBusy " >
< option * ngFor = "let project of projects" [ ngValue ] = " project " >
{{ project.key }} ({{ project.name }})
2021-11-30 21:25:35 -05:00
< / option >
< / select >
< / label >
< button type = "button" class = "btn btn-sm btn-primary" [ disabled ] = " isBusy " ( click ) = " bridgeRoom ( ) " >
Bridge
< / button >
< / div >
< / div >
< / my-ibox >
< / ng-template >
< / my-bridge-config >