@policystudio/policy-studio-ui-vue 1.1.19 → 1.1.20

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -182,7 +182,7 @@
182
182
  v-if="layout != 'comparison'"
183
183
  class="psui-space-x-2 psui-show-childrens-on-hover"
184
184
  >
185
- <PsTooltip v-if="column.hasProjections && !item.is_disabled && selectedRow == item.id && columnSelectedKey == column.key">
185
+ <PsTooltip v-if="isSelectedRow(column,item)">
186
186
  <template v-slot:trigger>
187
187
  <PsIcon
188
188
  icon="close"
@@ -198,7 +198,7 @@
198
198
  </template>
199
199
  </PsTooltip>
200
200
 
201
- <PsTooltip v-else>
201
+ <PsTooltip v-else-if="column.hasProjections">
202
202
  <template v-slot:trigger>
203
203
  <PsIcon
204
204
  icon="bar_chart"
@@ -535,6 +535,12 @@ export default {
535
535
  },
536
536
  onCloseSelectRow(item) {
537
537
  this.$eventBus.$emit('resetPolicyImpactItemSelected', item)
538
+ },
539
+ isSelectedRow(column,item){
540
+ if(!item.id){
541
+ return this.selectedRow === item.id && this.columnSelectedKey == column.key
542
+ }
543
+ return column.hasProjections && !item.is_disabled && this.selectedRow == item.id && this.columnSelectedKey == column.key
538
544
  }
539
545
  },
540
546
  }