@@ -48,8 +48,8 @@ export class Mitchell_Importer extends Importer {
48
48
screen . config . resourceDirectory = isLookingForCommitButton
49
49
? this . getMitchellPathForCommitButton ( )
50
50
: isLookingForCommitBtnInModal
51
- ? this . getMitchellPathForCommitButtonInModal ( )
52
- : this . getMitchellPathForAssets ( ) ;
51
+ ? this . getMitchellPathForCommitButtonInModal ( )
52
+ : this . getMitchellPathForAssets ( ) ;
53
53
54
54
// screen.config.resourceDirectory = isLookingForCommitButton
55
55
// ? this.getMitchellPathForCommitButton()
@@ -109,26 +109,25 @@ export class Mitchell_Importer extends Importer {
109
109
await this . populateMitchellTableData ( forgettables , selectedTypeForCommit ) ;
110
110
this . setMitchellConfig ( inputSpeedSeconds , true ) ;
111
111
await snooze ( 5000 ) ;
112
- const commitButtonCoordinates = await this . getButtonCoordinates (
113
- electronWindow ,
114
- MitchellButtons . commitButton
115
- ) ;
116
-
117
- if ( commitButtonCoordinates ) {
118
- await this . commitMitchellData ( commitButtonCoordinates , electronWindow ) ;
119
- // await this.commitMitchellData(commitButtonCoordinates);
120
- } else {
121
- log . error ( "Can't find the Commit Button." ) ;
122
- }
123
-
112
+ // const commitButtonCoordinates = await this.getButtonCoordinates(
113
+ // electronWindow,
114
+ // MitchellButtons.commitButton
115
+ // );
116
+
117
+ // if (commitButtonCoordinates) {
118
+ // await this.commitMitchellData(commitButtonCoordinates, electronWindow);
119
+ // // await this.commitMitchellData(commitButtonCoordinates);
120
+ // } else {
121
+ // log.error("Can't find the Commit Button.");
122
+ // }
123
+ this . progressUpdater . setPercentage ( 100 ) ;
124
124
await FirebaseService . useCurrentSession . setStatus ( SessionStatus . VALIDATING ) ;
125
+ await FirebaseService . useCurrentSession . setStatus ( SessionStatus . COMPLETED ) ;
126
+ this . complete ( automationIdToFinishRPA , url ) ;
125
127
// await this.verifyPopulation(forgettables);
126
128
} else {
127
129
electronWindow . webContents . send ( MESSAGE . RESET_CONTROLS_STATE , false ) ;
128
130
}
129
-
130
- await FirebaseService . useCurrentSession . setStatus ( SessionStatus . COMPLETED ) ;
131
- this . complete ( automationIdToFinishRPA , url ) ;
132
131
}
133
132
}
134
133
@@ -168,8 +167,8 @@ export class Mitchell_Importer extends Importer {
168
167
typeButton === MitchellButtons . manualLineButton
169
168
? await this . checkForButtonCoordinates ( MitchellButtons . manualLineButton , electronWindow )
170
169
: typeButton === MitchellButtons . commitButton
171
- ? await this . checkForButtonCoordinates ( MitchellButtons . commitButton , electronWindow )
172
- : await this . checkForButtonCoordinates ( MitchellButtons . commitButtonInModal , electronWindow ) ;
170
+ ? await this . checkForButtonCoordinates ( MitchellButtons . commitButton , electronWindow )
171
+ : await this . checkForButtonCoordinates ( MitchellButtons . commitButtonInModal , electronWindow ) ;
173
172
if ( buttonCoordinates ) {
174
173
const messageToSendToReact =
175
174
typeButton === MitchellButtons . manualLineButton
@@ -196,8 +195,8 @@ export class Mitchell_Importer extends Importer {
196
195
typeButton === MitchellButtons . manualLineButton
197
196
? fs . readdirSync ( this . getMitchellPathForAssets ( ) )
198
197
: typeButton === MitchellButtons . commitButton
199
- ? fs . readdirSync ( this . getMitchellPathForCommitButton ( ) )
200
- : fs . readdirSync ( this . getMitchellPathForCommitButtonInModal ( ) ) ;
198
+ ? fs . readdirSync ( this . getMitchellPathForCommitButton ( ) )
199
+ : fs . readdirSync ( this . getMitchellPathForCommitButtonInModal ( ) ) ;
201
200
const result : ImageSearchResult = {
202
201
coordinates : null ,
203
202
errors : [ ] ,
0 commit comments