Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit cc60533

Browse files
committed
Rename cancel to ignore
1 parent 1da068f commit cc60533

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CodePush.ios.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ function sync(options = {}) {
119119

120120
if (!remotePackage.isMandatory) {
121121
dialogButtons.push({
122-
text: options.cancelButtonText || "Ignore",
123-
onPress: () => resolve(CodePush.SyncStatus.USER_CANCELLED)
122+
text: options.ignoreButtonText || "Ignore",
123+
onPress: () => resolve(CodePush.SyncStatus.UPDATE_IGNORED)
124124
});
125125
}
126126

127-
AlertIOS.alert(options.title || "Update available", remotePackage.description, dialogButtons);
127+
AlertIOS.alert(options.updateTitle || "Update available", remotePackage.description, dialogButtons);
128128
}
129129
}, reject);
130130
});
@@ -139,7 +139,7 @@ var CodePush = {
139139
sync: sync,
140140
SyncStatus: {
141141
NO_UPDATE_AVAILABLE: 0,
142-
USER_CANCELLED: 1,
142+
UPDATE_IGNORED: 1,
143143
APPLY_SUCCESS: 2
144144
}
145145
};

0 commit comments

Comments
 (0)