File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 8
8
<component :is =" currentComponent" />
9
9
</div >
10
10
<div class =" flex flex-col w-full md:w-1/4 lg:w-1/6" v-if =" !isSearchPage" >
11
- <MyGroupsCard />
11
+ <MyGroupsCard v-if = " !hideSocialGroupBlock " />
12
12
<MyFriendsCard />
13
13
<MySkillsCard />
14
14
</div >
@@ -34,7 +34,10 @@ import { useSocialInfo } from "../../composables/useSocialInfo"
34
34
import { useSocialStore } from " ../../store/socialStore"
35
35
import { useI18n } from " vue-i18n"
36
36
import { useSecurityStore } from " ../../store/securityStore"
37
+ import { usePlatformConfig } from " ../../store/platformConfig"
37
38
39
+ const platformConfigStore = usePlatformConfig ()
40
+ const hideSocialGroupBlock = " true" === platformConfigStore .getSetting (" social.hide_social_groups_block" )
38
41
const route = useRoute ()
39
42
const { t } = useI18n ()
40
43
const securityStore = useSecurityStore ()
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ public function list(SettingsManager $settingsManager): Response
81
81
'profile.allow_social_map_fields ' ,
82
82
'forum.global_forums_course_id ' ,
83
83
'document.students_download_folders ' ,
84
+ 'social.hide_social_groups_block ' ,
84
85
];
85
86
86
87
$ user = $ this ->userHelper ->getCurrent ();
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ public function buildSettings(AbstractSettingsBuilder $builder): void
23
23
'disable_dislike_option ' => 'false ' ,
24
24
'social_show_language_flag_in_profile ' => 'false ' ,
25
25
'social_make_teachers_friend_all ' => 'false ' ,
26
+ 'hide_social_groups_block ' => 'false ' ,
26
27
]
27
28
)
28
29
;
@@ -44,6 +45,7 @@ public function buildForm(FormBuilderInterface $builder): void
44
45
->add ('disable_dislike_option ' , YesNoType::class)
45
46
->add ('social_show_language_flag_in_profile ' , YesNoType::class)
46
47
->add ('social_make_teachers_friend_all ' , YesNoType::class)
48
+ ->add ('hide_social_groups_block ' , YesNoType::class)
47
49
;
48
50
49
51
$ this ->updateFormFieldsFromSettingsInfo ($ builder );
You can’t perform that action at this time.
0 commit comments