Skip to content

Commit

Permalink
selinux: remove deprecated labelOff property of a Switch
Browse files Browse the repository at this point in the history
This property has been removed from PatternFly 6 with as reasoning that
a label should always convey the value when the checked state is true
and should not change based on the selection state.

patternfly/patternfly#6347

Relates: cockpit-project#20973
  • Loading branch information
jelly authored and mvollmer committed Sep 6, 2024
1 parent c062fd7 commit ca22d2d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/selinux/setroubleshoot-view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ class SELinuxStatus extends React.Component {
<h2>{_("SELinux policy")}</h2>
<Switch isChecked={this.props.selinuxStatus.enforcing}
label={_("Enforcing")}
labelOff={_("Permissive")}
onChange={this.props.changeSelinuxMode} />
</Flex>
{ note !== null &&
Expand Down

0 comments on commit ca22d2d

Please sign in to comment.