Skip to content

Commit 80ade38

Browse files
authored
After cloning new project, go to project when done (#1810)
The "Clone new project" page was setting a locationChange event handler to cancel the clone-status timer. However, since the clone-status page counts as a different locaiton, the event was firing as soon as the user pressed the "Get Started" button, cancelling the clone-status timer too soon so the "cloning new project" page was never detecting that the clone completed. By simply removing the locationChange event handler, we can let the clone status proceed. It changes from "Getting initial data" to "syncing" pretty soon, but that's fine. Once the status goes to idle, the existing code already cancels the timer and loads the project page, so there's no need for any further changes.
1 parent 160bdcf commit 80ade38

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/angular-app/languageforge/lexicon/new-project/lexicon-new-project.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export class LexiconNewProjectController implements angular.IController {
106106
this.sendReceive.clearState();
107107
this.sendReceive.setCloneProjectStatusSuccessCallback(this.gotoEditor);
108108
this.sendReceive.setCloneProjectStatusFailedCallback(this.cloneFailed);
109-
this.$scope.$on('$locationChangeStart', this.sendReceive.cancelCloneStatusTimer);
110109
}
111110

112111
// ----- Step 2: Send Receive Clone -----

0 commit comments

Comments
 (0)