@raketa-cloud/admin 1.0.1 → 1.0.3

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": "@raketa-cloud/admin",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "src/index.js",
5
5
  "files": [
6
6
  "src/",
@@ -3,5 +3,5 @@
3
3
  as: 'textarea',
4
4
  hint: '<a target="_blank" href="https://search.google.com/test/rich-results">Click here for a structured data verification tool</a>',
5
5
  "data-validations-json": true,
6
- value: JSON.stringify(resource.settings?.codes?.structured_json || undefined)
7
- }) %>
6
+ value: JSON.stringify(resource.settings?.codes?.structured_json || undefined, null, 2)
7
+ }) %>
@@ -267,6 +267,10 @@
267
267
  form.setAttribute('data-changed', 1);
268
268
  });
269
269
  });
270
+
271
+ form.addEventListener('submit', () => {
272
+ form.removeAttribute('data-changed');
273
+ })
270
274
  });
271
275
 
272
276
  window.addEventListener('beforeunload', (e) => {