@dile/crud 1.12.7 → 1.12.9

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.
@@ -80,14 +80,16 @@ export class DileCrudSingle extends DileI18nMixin(DileCrudMixin(LitElement)) {
80
80
  return html`
81
81
  <main class="elcontainer">
82
82
  ${this.detailTemplate}
83
- <div class="actions" @action-success=${this.actionSuccess}>
84
- ${!this.config?.customization?.disableEdit ? html`
85
- <dile-button .icon="${editIcon}" @click=${this.edit}>
86
- ${this.startUpdateLabelComputed(this.config.labels.startUpdateAction, this.translations)}
87
- </dile-button>
88
- ` : ''}
89
- ${this.actionsTemplate}
90
- </div>
83
+ ${this.config?.customization?.disableEdit && (!this.config?.actions?.list || this.config.actions.list.length === 0) ? '' : html`
84
+ <div class="actions" @action-success=${this.actionSuccess}>
85
+ ${!this.config?.customization?.disableEdit ? html`
86
+ <dile-button .icon="${editIcon}" @click=${this.edit}>
87
+ ${this.startUpdateLabelComputed(this.config.labels.startUpdateAction, this.translations)}
88
+ </dile-button>
89
+ ` : ''}
90
+ ${this.actionsTemplate}
91
+ </div>
92
+ `}
91
93
  </main>
92
94
 
93
95
  ${this.updateTemplate}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/crud",
3
- "version": "1.12.7",
3
+ "version": "1.12.9",
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": "bfb6d4acc0616ecc5654d9b21dbaaa9925d8c4b3"
34
+ "gitHead": "efd268961b82023f14d5744ac71afc358626c16e"
35
35
  }