wickes-css2 2.117.1-develop.1 → 2.117.1-im-2614-error-message.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.117.1-develop.1",
3
+ "version": "2.117.1-im-2614-error-message.1",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -125,6 +125,10 @@
125
125
  {
126
126
  "name": "develop",
127
127
  "prerelease": true
128
+ },
129
+ {
130
+ "name": "custom-tag/im-2614-error-message",
131
+ "prerelease": "${name.replace(/^custom-tag\\//g, '')}"
128
132
  }
129
133
  ],
130
134
  "plugins": [
@@ -4,7 +4,7 @@
4
4
  {{#extend "modal-body-section" customSectionClass="id-type-signup"}}
5
5
  {{#content "body"}}
6
6
  {{> notifications notification-page.warning withCloseBtn="true"
7
- text="Unable to attach file. Only JPG, PNG, GIF, BMP, WEBP, TIFF and HEIF image files are supported."}}
7
+ text="Unable to attach file. Only JPG, PNG, GIF, BMP, WEBP, TIFF and HEIF image files are supported." hideClass="true"}}
8
8
  <div class="signup-tradepro__modal-info">
9
9
  Select two forms of ID.
10
10
  <div class="tradepro-id-counter_wrap">
@@ -1,4 +1,4 @@
1
- <div class="{{#unless app}}notification notification_general{{/unless}} {{classModifier}}">
1
+ <div class="{{#unless app}}notification notification_general{{/unless}} {{classModifier}} {{#if hideClass}}notification--hide{{/if}}">
2
2
  {{#if success}}
3
3
  <span class="icon notification__icon">
4
4
  <span class="fas fa-check-circle"></span>
@@ -33,7 +33,14 @@ Wick.Notification = (function () {
33
33
  }
34
34
 
35
35
  $(document).on('click', '.notification__close', function () {
36
- $(this).parents('.notification, .notification_app, .sticky-wrapper').remove();
36
+ const $notification = $(this).parents('.notification, .notification_app, .sticky-wrapper');
37
+
38
+ if ($notification.hasClass('notification--hide')) {
39
+ $notification.hide();
40
+ return;
41
+ }
42
+
43
+ $notification.remove();
37
44
  });
38
45
 
39
46
  return {