Import: reset loading state when done importing.

master
Tom Hacohen 5 years ago
parent ad10d75dab
commit 58e432efec

@ -130,6 +130,7 @@ class ImportDialog extends React.Component<PropsType> {
addEntries(this.props.etesync, syncJournal.journal.uid, journalItems, lastUid) addEntries(this.props.etesync, syncJournal.journal.uid, journalItems, lastUid)
).then(() => { ).then(() => {
if (this.props.onClose) { if (this.props.onClose) {
this.setState({ loading: false });
this.props.onClose(); this.props.onClose();
} }
}); });

Loading…
Cancel
Save