Skip to content

Commit

Permalink
Fix: Fix door detection error and new file error in 3.14 (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaa77770 authored Apr 20, 2021
1 parent 1608528 commit 8092f1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/flux/project/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export const actions = {

if (modState.modelGroup.hasModel()) {
await dispatch(actions.save(headType, opts));
await dispatch(actions.updateState({ openedFile: undefined }));
await dispatch(actions.updateState(headType, { openedFile: undefined }));
}

if (headType === HEAD_3DP) {
Expand Down
8 changes: 4 additions & 4 deletions src/app/widgets/Enclosure/Enclosure.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,16 @@ class Enclosure extends PureComponent {
<span className="sm-parameter-row__label-lg">{i18n._('Door Detection')}</span>
<button
type="button"
className={!isDoorEnabled ? 'sm-btn-small sm-btn-primary' : 'sm-btn-small sm-btn-danger'}
className={isDoorEnabled ? 'sm-btn-small sm-btn-primary' : 'sm-btn-small sm-btn-danger'}
style={{
float: 'right'
}}
onClick={this.actions.onHandleDoorEnabled}
>
{isDoorEnabled && <i className="fa fa-toggle-off" />}
{!isDoorEnabled && <i className="fa fa-toggle-on" />}
{!isDoorEnabled && <i className="fa fa-toggle-off" />}
{isDoorEnabled && <i className="fa fa-toggle-on" />}
<span className="space" />
{!isDoorEnabled ? i18n._('On') : i18n._('Off')}
{isDoorEnabled ? i18n._('On') : i18n._('Off')}
</button>
</div>
</TipTrigger>
Expand Down

0 comments on commit 8092f1f

Please sign in to comment.