mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Integrating loading state, refreshing props > re-paint (#3208)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
This commit is contained in:
parent
05dfa7fa48
commit
fd46942a6f
@ -255,8 +255,10 @@ class SyncDropdown extends React.PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
async _handleEnableSync() {
|
||||
this.setState({ loadingProjectPull: true });
|
||||
const { vcs, workspace } = this.props;
|
||||
await vcs.switchAndCreateProjectIfNotExist(workspace._id, workspace.name);
|
||||
await this.refreshMainAttributes({ loadingProjectPull: false });
|
||||
}
|
||||
|
||||
_handleShowDeleteModal() {
|
||||
|
Loading…
Reference in New Issue
Block a user