@@ -188,8 +188,8 @@ function sync(options = {}, onSyncStatusChange, onDownloadProgress) {
188
188
onSyncStatusChange ( CodePush . SyncStatus . IDLE ) ;
189
189
resolve ( CodePush . SyncResult . UP_TO_DATE ) ;
190
190
}
191
- else if ( syncOptions . updateNotification ) {
192
- syncOptions . updateNotification = Object . assign ( CodePush . DEFAULT_UPDATE_DIALOG , syncOptions . updateNotification ) ;
191
+ else if ( syncOptions . updateDialog ) {
192
+ syncOptions . updateDialog = Object . assign ( CodePush . DEFAULT_UPDATE_DIALOG , syncOptions . updateDialog ) ;
193
193
194
194
var message = null ;
195
195
var dialogButtons = [
@@ -202,24 +202,24 @@ function sync(options = {}, onSyncStatusChange, onDownloadProgress) {
202
202
] ;
203
203
204
204
if ( remotePackage . isMandatory ) {
205
- message = syncOptions . updateNotification . mandatoryUpdateMessage ;
205
+ message = syncOptions . updateDialog . mandatoryUpdateMessage ;
206
206
dialogButtons [ 0 ] . text = syncOptions . mandatoryContinueButtonLabel ;
207
207
} else {
208
- message = syncOptions . updateNotification . optionalUpdateMessage ;
209
- dialogButtons [ 0 ] . text = syncOptions . updateNotification . optionalInstallButtonLabel ;
208
+ message = syncOptions . updateDialog . optionalUpdateMessage ;
209
+ dialogButtons [ 0 ] . text = syncOptions . updateDialog . optionalInstallButtonLabel ;
210
210
211
211
// Since this is an optional update, add another button
212
212
// to allow the end-user to ignore it
213
213
dialogButtons . push ( {
214
- text : syncOptions . updateNotification . optionalIgnoreButtonLabel ,
214
+ text : syncOptions . updateDialog . optionalIgnoreButtonLabel ,
215
215
onPress : ( ) => resolve ( CodePush . SyncResult . UPDATE_IGNORED )
216
216
} ) ;
217
217
}
218
218
219
219
// If the update has a description, and the developer
220
220
// explicitly chose to display it, then set that as the message
221
- if ( syncOptions . updateNotification . appendReleaseDescription && remotePackage . description ) {
222
- message += `${ syncOptions . updateNotification . descriptionPrefix } ${ remotePackage . description } ` ;
221
+ if ( syncOptions . updateDialog . appendReleaseDescription && remotePackage . description ) {
222
+ message += `${ syncOptions . updateDialog . descriptionPrefix } ${ remotePackage . description } ` ;
223
223
}
224
224
225
225
onSyncStatusChange ( CodePush . SyncStatus . AWAITING_USER_ACTION ) ;
0 commit comments