Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit93a9078

Browse files
committed
CU-3w8ybcw more cleanup
1 parent5755a99 commit93a9078

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed
Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,21 @@
1-
import{ChangeDetectorRef,Component,OnInit}from"@angular/core";
2-
import{Store}from"@ngrx/store";
3-
import{DepartmentVoiceChannelResultData}from'@resgrid/ngx-resgridlib';
4-
import{Observable,Subscription}from"rxjs";
5-
import{VoiceState}from"src/app/features/voice/store/voice.store";
6-
import{AudioProvider}from"src/app/providers/audio";
7-
import{OpenViduService}from"src/app/providers/openvidu";
8-
import{selectAvailableChannelsState,selectVoiceState}from"src/app/store";
9-
import*asVoiceActionsfrom"../../actions/voice.actions";
1+
import{Component,OnInit}from"@angular/core";
102

113
@Component({
124
selector:"app-voice-footer",
135
templateUrl:"./voice-footer.component.html",
146
styleUrls:["./voice-footer.component.scss"],
157
})
168
exportclassVoiceFooterComponentimplementsOnInit{
17-
publicselectedChannel:DepartmentVoiceChannelResultData;
18-
publicisTransmitting:boolean=false;
19-
publicvoiceState$:Observable<VoiceState|null>;
20-
publicavailableChannels$:Observable<DepartmentVoiceChannelResultData[]|null>;
219

22-
privateparticipants:number=0;
23-
privatevoiceSubscription:Subscription;
24-
privateavailableChannelsSubscription:Subscription;
10+
constructor(){
2511

26-
constructor(privatestore:Store<VoiceState>,privateaudioProvider:AudioProvider,
27-
publicopenViduService:OpenViduService,privateref:ChangeDetectorRef){
28-
this.voiceState$=this.store.select(selectVoiceState);
2912
}
3013

3114
ngOnInit():void{
3215

3316
}
3417

3518
ngOnDestroy():void{
36-
if(this.voiceSubscription){
37-
this.voiceSubscription.unsubscribe();
38-
this.voiceSubscription=null;
39-
}
4019

41-
if(this.availableChannelsSubscription){
42-
this.availableChannelsSubscription.unsubscribe();
43-
this.availableChannelsSubscription=null;
44-
}
4520
}
4621
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp