Skip to content

Commit

Permalink
BUG 3838: Add logging for debugging, rel 1.2.3 (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihailistov committed Apr 15, 2024
1 parent d99d8df commit 78a4f60
Show file tree
Hide file tree
Showing 6 changed files with 504 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/claim/js/claim.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.2.2.min.js';
'https://cdn.jsdelivr.net/gh/bcgov/nr-af-pods@dev/powerpod/releases/powerpod-1.2.3.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.2.2",
"version": "1.2.3",
"description": "Powerpod is a jQuery plugin that enhances functionality of Power Pages components.",
"main": "dist/powerpod",
"scripts": {
Expand Down
479 changes: 479 additions & 0 deletions powerpod/releases/powerpod-1.2.3.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.2.2
* powerpod 1.2.3
* https://github.com/bcgov/nr-af-pods/powerpod
*
* @license GPLv3 for open source use only
Expand Down
25 changes: 21 additions & 4 deletions powerpod/src/js/claim/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -940,10 +940,27 @@ function isNotesStillLoading(context) {
'#notescontrol > div > div.notes-loading-more.message.text-center'
);

if (
loadingElement?.style?.display === '' &&
loadingMoreElement?.style?.display === ''
) {
const loadingElDisplayStyle = loadingElement?.style?.display;
const loadingMoreElDisplayStyle = loadingMoreElement?.style?.display;

logger.info({
fn: isNotesStillLoading,
message: 'Checking if notes is still loading or not...',
data: {
context,
loadingElement,
loadingMoreElement,
loadingElDisplayStyle,
loadingMoreElDisplayStyle,
},
});

if (loadingElDisplayStyle === '' || loadingMoreElDisplayStyle === '') {
logger.warn({
fn: isNotesStillLoading,
message: 'Notes is still loading',
data: { context, loadingElement, loadingMoreElement },
});
return true;
}
return false;
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.2.2';
POWERPOD.version = '1.2.3';
// @ts-ignore
win.powerpod = POWERPOD;
}

0 comments on commit 78a4f60

Please sign in to comment.