@dile/crud 0.6.3 → 0.6.4
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.
|
@@ -70,6 +70,7 @@ export class DileAjaxForm extends DileI18nMixin(LitElement) {
|
|
|
70
70
|
inline: { type: Boolean, reflect: true },
|
|
71
71
|
actionIcon: { type: Object },
|
|
72
72
|
cancelIcon: { type: Object },
|
|
73
|
+
disableClearAfterInsert: { type: Boolean },
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
76
|
|
|
@@ -248,7 +249,7 @@ export class DileAjaxForm extends DileI18nMixin(LitElement) {
|
|
|
248
249
|
let data = this.responseAdapter.getData();
|
|
249
250
|
let msg = this._customSuccessMessage();
|
|
250
251
|
this.feedback.positiveFeedbackWithDelay(msg, 5000);
|
|
251
|
-
if(this.operation == 'insert') {
|
|
252
|
+
if(this.operation == 'insert' && !this.disableClearAfterInsert) {
|
|
252
253
|
this.clearForm();
|
|
253
254
|
}
|
|
254
255
|
this.dispatchEvent(new CustomEvent('save-success', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Components to create a generic crud system based on Web Components and Lit",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "7678b4a06e0e73fda2c43ca034f4c7f223e5f1cf"
|
|
35
35
|
}
|