@@ -30,8 +30,8 @@ import {
30
30
DropdownItem ,
31
31
DropdownSeparator ,
32
32
KebabToggle ,
33
- Select ,
34
- SelectOption ,
33
+ // Select,
34
+ // SelectOption,
35
35
Title ,
36
36
TreeView ,
37
37
TreeViewDataItem ,
@@ -40,8 +40,8 @@ import {
40
40
import ProfileSelect from "./ProfileSelect"
41
41
// import DashboardSelect from "./DashboardSelect"
42
42
import ProfileWatcher from "../tray/watchers/profile/list"
43
- import ProfileStatusWatcher from "../tray/watchers/profile/status"
44
- import UpdateFunction from "../tray/update"
43
+ // import ProfileStatusWatcher from "../tray/watchers/profile/status"
44
+ // import UpdateFunction from "../tray/update"
45
45
import { handleNew , handleDelete , handleReset } from "../controller/profile/actions"
46
46
47
47
import "../../web/scss/components/ProfileExplorer/_index.scss"
@@ -60,7 +60,7 @@ type Diff = {
60
60
61
61
type State = Partial < Diff > & {
62
62
watcher : ProfileWatcher
63
- statusWatcher : ProfileStatusWatcher
63
+ // statusWatcher: ProfileStatusWatcher
64
64
selectedProfile ?: string
65
65
profiles ?: Profile
66
66
catastrophicError ?: unknown
@@ -84,11 +84,11 @@ export default class ProfileExplorer extends React.PureComponent<Props, State> {
84
84
this . init ( )
85
85
}
86
86
87
- private readonly statusWatcherUpdateFn : UpdateFunction = ( ) => {
87
+ /* private readonly statusWatcherUpdateFn: UpdateFunction = () => {
88
88
this.setState((curState) => ({
89
89
updateCount: (curState?.updateCount || 0) + 1,
90
90
}))
91
- }
91
+ } */
92
92
93
93
/** If given `null`, then we will attempt to use the lastUsed profile */
94
94
private readonly _handleProfileSelection = ( selectedProfile : string | null ) => {
@@ -212,8 +212,8 @@ export default class ProfileExplorer extends React.PureComponent<Props, State> {
212
212
public componentDidUpdate ( prevProps : Props , prevState : State ) {
213
213
if ( prevState ?. selectedProfile !== this . state ?. selectedProfile ) {
214
214
if ( ! this . state ?. selectedProfile ) return
215
- const statusWatcher = new ProfileStatusWatcher ( this . state . selectedProfile , this . statusWatcherUpdateFn )
216
- this . setState ( { statusWatcher } )
215
+ // const statusWatcher = new ProfileStatusWatcher(this.state.selectedProfile, this.statusWatcherUpdateFn)
216
+ // this.setState({ statusWatcher })
217
217
}
218
218
}
219
219
@@ -224,15 +224,15 @@ export default class ProfileExplorer extends React.PureComponent<Props, State> {
224
224
return < Loading />
225
225
} else {
226
226
return (
227
+ // profileReadiness={this.state.statusWatcher?.readiness}
228
+ // profileStatus={this.state.statusWatcher}
227
229
< div className = "codeflare--profile-explorer flex-fill" >
228
230
< ProfileCard
229
231
profile = { this . state . selectedProfile }
230
232
profiles = { this . state . profiles }
231
233
profilesDiff = { this . state . profilesDiff }
232
234
onSelectProfile = { this . _handleProfileSelection }
233
235
onSelectGuidebook = { this . props . onSelectGuidebook }
234
- profileReadiness = { this . state . statusWatcher ?. readiness }
235
- profileStatus = { this . state . statusWatcher }
236
236
/>
237
237
</ div >
238
238
)
@@ -246,8 +246,8 @@ type ProfileCardProps = Partial<Diff> &
246
246
profiles : Profile
247
247
onSelectProfile : ( profile : string | null ) => void
248
248
249
- profileReadiness : string
250
- profileStatus : ProfileStatusWatcher
249
+ // profileReadiness: string
250
+ // profileStatus: ProfileStatusWatcher
251
251
}
252
252
253
253
type ProfileCardState = {
@@ -316,7 +316,7 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
316
316
)
317
317
}
318
318
319
- private actionsStatus ( ) {
319
+ /* private actionsStatus() {
320
320
const StatusTitle = ({ readiness }: { readiness: string | undefined }) => (
321
321
<React.Fragment>
322
322
<span>Status</span>
@@ -339,7 +339,7 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
339
339
<SelectOption isPlaceholder>{this.props.profileStatus?.workers.label}</SelectOption>
340
340
</Select>
341
341
)
342
- }
342
+ } */
343
343
344
344
private readonly groups : Record < string , Group > = {
345
345
Application : {
0 commit comments