@progressive-development/pd-dialog 0.0.14 → 0.0.16
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 +1 -1
- package/src/PdSubmitDialog.js +17 -7
package/package.json
CHANGED
package/src/PdSubmitDialog.js
CHANGED
|
@@ -116,14 +116,24 @@ export class PdSubmitDialog extends LitElement {
|
|
|
116
116
|
updated(changedProps) {
|
|
117
117
|
if (changedProps.has('status')) {
|
|
118
118
|
if (this.status === STATUS_SEND_SUCCESS) {
|
|
119
|
+
|
|
119
120
|
this._buttons = [
|
|
120
|
-
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
{name: 'Close'},];
|
|
122
|
+
|
|
123
|
+
/*
|
|
124
|
+
if (this.type === 'mail') {
|
|
125
|
+
this._buttons = [
|
|
126
|
+
{name: 'Close Popup'},];
|
|
127
|
+
|
|
128
|
+
} else {
|
|
129
|
+
this._buttons = [
|
|
130
|
+
{
|
|
131
|
+
name: 'Terug naar de startpagina',
|
|
132
|
+
key: 10
|
|
133
|
+
},];
|
|
134
|
+
}
|
|
135
|
+
*/
|
|
136
|
+
|
|
127
137
|
} else if (this.status === STATUS_SEND_FAILED) {
|
|
128
138
|
this._buttons = [];
|
|
129
139
|
if (this.type === 'mail') {
|