Skip to content

Commit

Permalink
TASK 3980: Fix multi draft, rel 1.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mihailistov committed Jun 11, 2024
1 parent 37b5581 commit 23a4afe
Show file tree
Hide file tree
Showing 8 changed files with 2,119 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/application/js/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function () {
const src =
'https://cdn.jsdelivr.net/gh/bcgov/nr-af-pods@dev/powerpod/releases/powerpod-1.4.6.min.js';
'https://cdn.jsdelivr.net/gh/bcgov/nr-af-pods@dev/powerpod/releases/powerpod-1.4.7.min.js';
const script = document.createElement('script');
script.setAttribute('async', '');
script.src = src;
Expand Down
2 changes: 1 addition & 1 deletion powerpod/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "powerpod",
"type": "module",
"version": "1.4.6",
"version": "1.4.7",
"description": "Powerpod is a jQuery plugin that enhances functionality of Power Pages components.",
"main": "dist/powerpod",
"scripts": {
Expand Down
285 changes: 285 additions & 0 deletions powerpod/releases/powerpod-1.4.6.min.js

Large diffs are not rendered by default.

1,818 changes: 1,818 additions & 0 deletions powerpod/releases/powerpod-1.4.7.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion powerpod/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import typescript from '@rollup/plugin-typescript';
import css from 'rollup-plugin-import-css';

const licenseContent = `/*!
* powerpod 1.4.6
* powerpod 1.4.7
* https://github.com/bcgov/nr-af-pods/powerpod
*
* @license GPLv3 for open source use only
Expand Down
3 changes: 2 additions & 1 deletion powerpod/src/js/common/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export function redirectToFormId(id) {
let currentUrl = new URL(window.location.href);

// Append the new parameter to the URL
currentUrl.searchParams.append('id', id);
currentUrl.search = '';
currentUrl.searchParams.set('id', id);

logger.info({
fn: redirectToFormId,
Expand Down
13 changes: 10 additions & 3 deletions powerpod/src/js/common/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ export async function getProgramId() {
});
}
if (
programIdHiddenValue &&
programIdParam &&
programIdHiddenValue != programIdParam
(programIdHiddenValue &&
programIdParam &&
programIdHiddenValue != programIdParam) ||
(programIdHiddenValue == undefined && programIdParam)
) {
logger.warn({
fn: getProgramId,
Expand Down Expand Up @@ -178,6 +179,12 @@ export async function getProgramId() {
'Check that HTML content is present in Portal Management.',
});
}

logger.info({
fn: getProgramId,
message: `No mismatch or drafts to look up, succesfully found programid: ${programId}`,
});

// @ts-ignore
POWERPOD.program.programId = programId;
return { programId };
Expand Down
2 changes: 1 addition & 1 deletion powerpod/src/js/powerpod.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function setAPI() {
};
};
// @ts-ignore
POWERPOD.version = '1.4.6';
POWERPOD.version = '1.4.7';
// @ts-ignore
win.powerpod = POWERPOD;
}

0 comments on commit 23a4afe

Please sign in to comment.