From cc6053381f95359ea069a8237fd31055ef06c3d1 Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Tue, 27 Oct 2015 00:09:25 -0700 Subject: [PATCH] Rename cancel to ignore --- CodePush.ios.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CodePush.ios.js b/CodePush.ios.js index 56b850d..e64e73c 100644 --- a/CodePush.ios.js +++ b/CodePush.ios.js @@ -119,12 +119,12 @@ function sync(options = {}) { if (!remotePackage.isMandatory) { dialogButtons.push({ - text: options.cancelButtonText || "Ignore", - onPress: () => resolve(CodePush.SyncStatus.USER_CANCELLED) + text: options.ignoreButtonText || "Ignore", + onPress: () => resolve(CodePush.SyncStatus.UPDATE_IGNORED) }); } - AlertIOS.alert(options.title || "Update available", remotePackage.description, dialogButtons); + AlertIOS.alert(options.updateTitle || "Update available", remotePackage.description, dialogButtons); } }, reject); }); @@ -139,7 +139,7 @@ var CodePush = { sync: sync, SyncStatus: { NO_UPDATE_AVAILABLE: 0, - USER_CANCELLED: 1, + UPDATE_IGNORED: 1, APPLY_SUCCESS: 2 } };