@dile/crud 1.3.2 → 1.3.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.
@@ -149,6 +149,10 @@ export class DileCrudActions extends DileI18nMixin(LitElement) {
149
149
 
150
150
  selectorChanged(e) {
151
151
  this.selection = e.target.value;
152
+ this.computeDestructive();
153
+ }
154
+
155
+ computeDestructive() {
152
156
  if(this.isDestructive()) {
153
157
  this.destructive = true;
154
158
  } else {
@@ -76,6 +76,7 @@ export class DileCrudSingleActions extends DileCrudActions {
76
76
 
77
77
  onActionSelected(e) {
78
78
  this.selection = e.detail.selected;
79
+ this.computeDestructive();
79
80
  this.showAction();
80
81
  }
81
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/crud",
3
- "version": "1.3.2",
3
+ "version": "1.3.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": "8310e1c2b47f0e788de9ffa6ca75e4d736545d62"
34
+ "gitHead": "9139c0a299b467aa0d8ab4f16f53de1861769b64"
35
35
  }