Skip to content

Commit 3978e7a

Browse files
committed
fix
1 parent 756e599 commit 3978e7a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/restream-modal/restream-modal.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ <h4 class="modal-title lbl">Re-streaming: {{ channel?.name }}</h4>
8080
<button
8181
class="btn btn-primary d-inline-flex align-items-center"
8282
(click)="share()"
83+
[disabled]="loading"
8384
*ngIf="started"
8485
>
8586
<span>Share</span>

src/app/restream-modal/restream-modal.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export class RestreamModalComponent implements OnInit, OnDestroy {
1919
networkInfo?: NetworkInfo;
2020
selectedIP?: string;
2121
toUnlisten: UnlistenFn[] = [];
22+
2223
constructor(
2324
private error: ErrorService,
2425
public activeModal: NgbActiveModal,
@@ -42,10 +43,10 @@ export class RestreamModalComponent implements OnInit, OnDestroy {
4243
this.loading = true;
4344
try {
4445
await invoke("start_restream", { channel: this.channel });
45-
this.started = false;
4646
} catch (e) {
4747
this.error.handleError(e);
4848
}
49+
this.started = false;
4950
this.loading = false;
5051
}
5152

@@ -56,7 +57,6 @@ export class RestreamModalComponent implements OnInit, OnDestroy {
5657
} catch (e) {
5758
this.error.handleError(e);
5859
}
59-
this.loading = false;
6060
}
6161

6262
async watch() {

0 commit comments

Comments
 (0)