@dile/crud
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -143,8 +143,8 @@ import { LitElement, html, css } from 'lit'; | ||
${this.actionIcon | ||
? html`<a href="#" @click=${this.doAction}><dile-icon .icon=${this.actionIcon} class="actionIcon"></dile-icon></a>` | ||
: html`<dile-button @click=${this.doAction}>${this.actionLabelComputed(this.actionLabel, this.translations, this.operation)}</dile-button>` | ||
? html`<a href="#" @click=${this.doActionHandler}><dile-icon .icon=${this.actionIcon} class="actionIcon"></dile-icon></a>` | ||
: html`<dile-button @click=${this.doActionHandler}>${this.actionLabelComputed(this.actionLabel, this.translations, this.operation)}</dile-button>` | ||
} | ||
${this.showCancelButton ? | ||
this.cancelIcon | ||
? html`<a href="#" @click=${this.doCancel}><dile-icon @click=${this.doAction} .icon=${this.cancelIcon} class="cancelIcon"></dile-icon></a>` | ||
? html`<a href="#" @click=${this.doCancel}><dile-icon @click=${this.doActionHandler} .icon=${this.cancelIcon} class="cancelIcon"></dile-icon></a>` | ||
: html`<dile-button class="cancel_button" @click=${this.doCancel}>${this.cancelLabelComputed(this.cancelLabel, this.translations)}</dile-button>` | ||
@@ -189,4 +189,8 @@ : '' | ||
doAction(e) { | ||
doActionHandler(e) { | ||
e.preventDefault(); | ||
this.doAction(); | ||
} | ||
doAction() { | ||
this.feedback.clear(); | ||
@@ -193,0 +197,0 @@ this.ajaxsave.data = this.form.getData(); |
{ | ||
"name": "@dile/crud", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "Components to create a generic crud system based on Web Components and Lit", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "d94902b30818bfc992fad827660631d31a6eaa39" | ||
"gitHead": "4d0563cfb9fc1356ab051c4edd273678d49e4c67" | ||
} |
131351
3993