Skip to content

Commit

Permalink
fix: configuration queue settings not saving
Browse files Browse the repository at this point in the history
  • Loading branch information
iRaySpace committed May 6, 2019
1 parent b004ba6 commit ecca8ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/boot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ export default function() {
if (item.hasTailOrder) {
stores.stateStore.toggleTailOrder();
}
if (item.useDefaultCustomer) {
stores.stateStore.toggleUseDefaultCustomer();
}
if (item.useDescription) {
stores.stateStore.toggleUseDescription();
}
}
});

Expand Down
9 changes: 8 additions & 1 deletion src/container/SettingsContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,16 @@ export default class SettingsContainer extends React.Component {
setQueueNotEditing,
queueHost,
hasTailOrder,
useDefaultCustomer,
useDescription,
} = this.props.stateStore;

saveToSettings({ queueHost, hasTailOrder });
saveToSettings({
queueHost,
hasTailOrder,
useDescription,
useDefaultCustomer
});
setQueueNotEditing();
};

Expand Down

0 comments on commit ecca8ac

Please sign in to comment.