@saooti/octopus-sdk 38.1.17 → 38.1.18

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": "38.1.17",
3
+ "version": "38.1.18",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -69,7 +69,7 @@
69
69
  />
70
70
  </div>
71
71
  </div>
72
- <div v-if="!isPodcastmaker && authenticated && podcast && isProduction" class="d-flex flex-column me-2">
72
+ <div v-if="shareAiAuth" class="d-flex flex-column me-2">
73
73
  <div class="h4 mb-2">
74
74
  {{ $t("Generate a social media post (with AI)") }}
75
75
  </div>
@@ -167,10 +167,17 @@ export default defineComponent({
167
167
  };
168
168
  },
169
169
  computed: {
170
- ...mapState(useAuthStore, ["isGarStudent"]),
170
+ ...mapState(useAuthStore, ["isGarStudent", "authOrganisation"]),
171
171
  authenticated(): boolean {
172
172
  return state.generalParameters.authenticated as boolean;
173
173
  },
174
+ shareAiAuth(): boolean{
175
+ return !this.isPodcastmaker && this.authenticated && undefined!==this.podcast && this.isProduction &&
176
+ ((this.authOrganisation.attributes?.["openAi"] as
177
+ | string
178
+ | undefined) === "true" ?? false
179
+ );
180
+ },
174
181
  titleRssButton(): string {
175
182
  if (this.participantId) {
176
183
  return this.$t("Subscribe to this participant");