@@ -39,11 +39,11 @@ import {
39
39
} from "@patternfly/react-core"
40
40
41
41
import ProfileSelect from "./ProfileSelect"
42
- import DashboardSelect from "./DashboardSelect"
42
+ // import DashboardSelect from "./DashboardSelect"
43
43
import ProfileWatcher from "../tray/watchers/profile/list"
44
44
import ProfileStatusWatcher from "../tray/watchers/profile/status"
45
45
import UpdateFunction from "../tray/update"
46
- import { handleBoot , handleShutdown } from "../controller/profile/actions"
46
+ import { handleReset } from "../controller/profile/actions"
47
47
48
48
import "../../web/scss/components/Dashboard/Description.scss"
49
49
import "../../web/scss/components/ProfileExplorer/_index.scss"
@@ -210,8 +210,9 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
210
210
isOpen : false ,
211
211
}
212
212
}
213
- private readonly _handleBoot = ( ) => handleBoot ( this . props . profile )
214
- private readonly _handleShutdown = ( ) => handleShutdown ( this . props . profile )
213
+ private readonly _handleReset = ( ) => handleReset ( this . props . profile )
214
+ // private readonly _handleBoot = () => handleBoot(this.props.profile)
215
+ // private readonly _handleShutdown = () => handleShutdown(this.props.profile)
215
216
private readonly _onToggle = ( ) => this . setState ( { isOpen : ! this . state . isOpen } )
216
217
217
218
private title ( ) {
@@ -384,8 +385,14 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
384
385
private footer ( ) {
385
386
return (
386
387
< Flex >
388
+ < FlexItem flex = { { default : "flex_1" } } > </ FlexItem >
387
389
< FlexItem >
388
- < Button variant = "link" isSmall className = "codeflare--profile-explorer--boot-btn" onClick = { this . _handleBoot } >
390
+ < Button variant = "link" isSmall className = "codeflare--profile-explorer--reset-btn" onClick = { this . _handleReset } >
391
+ Reset
392
+ </ Button >
393
+ </ FlexItem >
394
+ { /*<FlexItem>
395
+ <Button variant="link" isSmall className="codeflare--profile-explorer--boot-btn" onClick={this._handleBoot}>
389
396
Boot
390
397
</Button>
391
398
<Button
@@ -399,7 +406,7 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
399
406
</FlexItem>
400
407
<FlexItem flex={{ default: "flex_1" }}>
401
408
<DashboardSelect selectedProfile={this.props.profile} />
402
- </ FlexItem >
409
+ </FlexItem>*/ }
403
410
</ Flex >
404
411
)
405
412
}
0 commit comments