@dile/crud
Advanced tools
Comparing version 0.0.36 to 0.0.37
@@ -182,3 +182,3 @@ import { LitElement, html, css } from 'lit'; | ||
<dile-button @click=${this.dispatchInsertRequest}> | ||
${this.config.labels.insertAction} | ||
${this.insertLabelComputed(this.config.labels.insertAction, this.translations)} | ||
</dile-button> | ||
@@ -191,2 +191,7 @@ </p> | ||
} | ||
insertLabelComputed(label, translations) { | ||
return label ? label : translations?.insert_label ? translations.insert_label : 'Insert'; | ||
} | ||
get elementsTemplate() { | ||
@@ -193,0 +198,0 @@ return html` |
{ | ||
"name": "@dile/crud", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"description": "Components to create a generic crud system based on Web Components and Lit", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "590589b6c02e4ad4ca232a7959b19eccaea30295" | ||
"gitHead": "03e72e69e93f756ddde17a3018e932c823db6228" | ||
} |
109172
3301