jobdone-shared-files 1.0.18 → 1.0.19

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/treeItem.vue +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobdone-shared-files",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Shared JS and SCSS for Jobdone Enterprise.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/treeItem.vue CHANGED
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <li class="tree-item" :class="[itemClass]">
3
3
  <div class="card flex-row d-flex input-group flex-nowrap">
4
- <button type="button" class="btn text-primary border-end px-1" :disabled="!item.children" data-bs-toggle="collapse" :data-bs-target="'#collapse-'+item.id">
4
+ <button type="button" class="btn text-primary border-end px-1" :disabled="!item.children || item.children.length == 0" data-bs-toggle="collapse" :data-bs-target="'#collapse-'+item.id">
5
5
  <span class="material-icons">arrow_drop_down</span>
6
6
  <slot name="icon-start"></slot>
7
7
  </button>