From 8ca20851732a4b0b074d7cfa2b4befc772db4420 Mon Sep 17 00:00:00 2001 From: Mohamed Amine Krout Date: Thu, 21 Nov 2024 13:35:59 +0100 Subject: [PATCH] fix: It's possible to set message visibility to 'Your network' when exo.feature.PostToNetwork.enabled is set to false - EXO-75422 - Meeds-io/meeds#2606 Prior to this change, a user can set set message visibility to 'Your network' when sending a kudo even if the exo.feature.PostToNetwork.enabled is set to false. This commit hide the "Your network" option when the exo.feature.PostToNetwork.enabled is set to false in the Kudos drawer. --- .../src/main/webapp/vue-app/kudos/components/KudosApp.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kudos-webapps/src/main/webapp/vue-app/kudos/components/KudosApp.vue b/kudos-webapps/src/main/webapp/vue-app/kudos/components/KudosApp.vue index fa52487e9..6ad3c00fb 100644 --- a/kudos-webapps/src/main/webapp/vue-app/kudos/components/KudosApp.vue +++ b/kudos-webapps/src/main/webapp/vue-app/kudos/components/KudosApp.vue @@ -87,6 +87,7 @@
{{ $t('exoplatform.kudos.visibility.title') }} @@ -274,7 +275,8 @@ export default { username: eXo.env.portal.userName, spaceId: eXo.env.portal.spaceId, spacePrettyName: eXo.env.portal.spaceName, - audienceChoice: null, + postToNetwork: eXo.env.portal.postToNetworkEnabled, + audienceChoice: eXo.env.portal.postToNetworkEnabled && 'yourNetwork' || 'oneOfYourSpaces', noReceiverIdentityId: false }; },