@progressive-development/pd-dialog 0.0.13 → 0.0.15

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
@@ -3,7 +3,7 @@
3
3
  "description": "Progressive Development dialog components.",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.0.13",
6
+ "version": "0.0.15",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdPopup.js CHANGED
@@ -123,6 +123,10 @@ export class PdPopup extends LitElement {
123
123
  this._activatePopup();
124
124
  }
125
125
 
126
+ hidePopup() {
127
+ this._closePopup();
128
+ }
129
+
126
130
  _activatePopup() {
127
131
  // $('.hover_bkgr_fricc').show();
128
132
  const modal = this.shadowRoot.getElementById('modalId');
@@ -116,14 +116,19 @@ export class PdSubmitDialog extends LitElement {
116
116
  updated(changedProps) {
117
117
  if (changedProps.has('status')) {
118
118
  if (this.status === STATUS_SEND_SUCCESS) {
119
- this._buttons = [
120
- {
121
- name:
122
- this.type === 'mail'
123
- ? 'Close Popup'
124
- : 'Terug naar de startpagina',
125
- },
126
- ];
119
+
120
+ if (this.type === 'mail') {
121
+ this._buttons = [
122
+ {name: 'Close Popup'},];
123
+
124
+ } else {
125
+ this._buttons = [
126
+ {
127
+ name: 'Terug naar de startpagina',
128
+ key: 10
129
+ },];
130
+ }
131
+
127
132
  } else if (this.status === STATUS_SEND_FAILED) {
128
133
  this._buttons = [];
129
134
  if (this.type === 'mail') {