u
This commit is contained in:
@@ -78,9 +78,6 @@ export default class PosTerminalSettingsPanel extends Component {
|
||||
if (categoryAutomat.state.treeStatus === 'idle') {
|
||||
void categoryAutomat.actions.loadTree();
|
||||
}
|
||||
if (companyAutomat.state.terminalsStatus !== 'succeeded') {
|
||||
void this.loadTerminals();
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
@@ -120,7 +117,6 @@ export default class PosTerminalSettingsPanel extends Component {
|
||||
await whenCategoryTreeReady();
|
||||
}
|
||||
|
||||
await companyAutomat.actions.loadTerminals();
|
||||
this.setState({ newTerminalName: '' });
|
||||
enqueueSnackbar('Terminal hinzugefügt.', { variant: 'success' });
|
||||
} catch (err) {
|
||||
@@ -134,7 +130,6 @@ export default class PosTerminalSettingsPanel extends Component {
|
||||
this.setState({ deletingId: terminal.id });
|
||||
try {
|
||||
await companyAutomat.actions.deleteTerminal(terminal.id);
|
||||
await companyAutomat.actions.loadTerminals();
|
||||
enqueueSnackbar('Terminal gelöscht.', { variant: 'info' });
|
||||
} catch (err) {
|
||||
notifyError(err);
|
||||
|
||||
Reference in New Issue
Block a user