@admc.com/eslintplugin-sn-test 2.0.9 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ function cancel() {
2
+ "use strict";
3
+ const c = gel('cancelled');
4
+ c.value = "true";
5
+ GlideDialogWindow.get().destroy();
6
+ return false;
7
+ }
8
+
9
+ function ok() {
10
+ "use strict";
11
+ return true;
12
+ }
@@ -0,0 +1,16 @@
1
+ /* eslint-disable camelcase */
2
+ if ('false' === cancelled && !gs.nil(contractID)) {
3
+ var childContractValidationResult = ContractRenewalUtils.verifyContractValidation(contractID);
4
+ if (childContractValidationResult.shouldAllowRenewal) {
5
+ var requestID = new sn_itam_common.ContractRenewalUtils().createRenewRequest(contractID);
6
+ var requestTable = sn_itam_common.ContractRenewalUtils.RENEWAL_REQUEST_TABLE;
7
+ if (gs.nil(requestID)) {
8
+ response.sendRedirect('ast_contract.do?sys_id=' + contractID);
9
+ } else {
10
+ response.sendRedirect(requestTable + '.do?sys_id=' + requestID);
11
+ }
12
+ } else {
13
+ gs.addErrorMessage(childContractValidationResult.message);
14
+ response.sendRedirect('ast_contract.do?sys_id=' + contractID);
15
+ }
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc.com/eslintplugin-sn-test",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "External tests for ESLint plugin @admc.com/eslint-plugin-sn",
5
5
  "scripts": {
6
6
  "test": "mocha --recursive",