@saooti/octopus-sdk 37.0.54 → 37.0.55

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": "@saooti/octopus-sdk",
3
- "version": "37.0.54",
3
+ "version": "37.0.55",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- v-if="filterOrgaId || organisationId"
3
+ v-if="displayLiveList"
4
4
  class="d-flex flex-column align-items-start mt-3"
5
5
  >
6
6
  <div
@@ -73,6 +73,7 @@ export default defineComponent({
73
73
 
74
74
  props: {
75
75
  organisationId: { default: undefined, type: String },
76
+ hideIfEmpty: { default: false, type: Boolean },
76
77
  },
77
78
  data() {
78
79
  return {
@@ -89,6 +90,10 @@ export default defineComponent({
89
90
  computed: {
90
91
  ...mapState(useFilterStore, ["filterOrgaId"]),
91
92
  ...mapState(useAuthStore, ["authOrganisation"]),
93
+ displayLiveList(): boolean{
94
+ return (undefined!==this.filterOrgaId || undefined!==this.organisationId) &&
95
+ (!this.hideIfEmpty || (this.hideIfEmpty && 0!==this.lives.length) ) ;
96
+ },
92
97
  filterOrgaUsed(): string | undefined {
93
98
  return this.filterOrgaId ? this.filterOrgaId : this.organisationId;
94
99
  },