@dile/crud 0.6.2 → 0.6.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.
|
@@ -140,12 +140,12 @@ export class DileAjaxForm extends DileI18nMixin(LitElement) {
|
|
|
140
140
|
return html`
|
|
141
141
|
<div class="actions">
|
|
142
142
|
${this.actionIcon
|
|
143
|
-
? html`<a href="#" @click=${this.
|
|
144
|
-
: html`<dile-button @click=${this.
|
|
143
|
+
? html`<a href="#" @click=${this.doActionHandler}><dile-icon .icon=${this.actionIcon} class="actionIcon"></dile-icon></a>`
|
|
144
|
+
: html`<dile-button @click=${this.doActionHandler}>${this.actionLabelComputed(this.actionLabel, this.translations, this.operation)}</dile-button>`
|
|
145
145
|
}
|
|
146
146
|
${this.showCancelButton ?
|
|
147
147
|
this.cancelIcon
|
|
148
|
-
? html`<a href="#" @click=${this.doCancel}><dile-icon @click=${this.
|
|
148
|
+
? html`<a href="#" @click=${this.doCancel}><dile-icon @click=${this.doActionHandler} .icon=${this.cancelIcon} class="cancelIcon"></dile-icon></a>`
|
|
149
149
|
: html`<dile-button class="cancel_button" @click=${this.doCancel}>${this.cancelLabelComputed(this.cancelLabel, this.translations)}</dile-button>`
|
|
150
150
|
: ''
|
|
151
151
|
}
|
|
@@ -185,8 +185,12 @@ export class DileAjaxForm extends DileI18nMixin(LitElement) {
|
|
|
185
185
|
})
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
doActionHandler(e) {
|
|
189
189
|
e.preventDefault();
|
|
190
|
+
this.doAction();
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
doAction() {
|
|
190
194
|
this.feedback.clear();
|
|
191
195
|
this.ajaxsave.data = this.form.getData();
|
|
192
196
|
this.ajaxsave.generateRequest();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
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": "4d0563cfb9fc1356ab051c4edd273678d49e4c67"
|
|
35
35
|
}
|