@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
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
/>
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
72
|
-
<div v-if="
|
|
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");
|