File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <script >
2+ const PROD_HOSTNAME = ' people.mozilla.org' ;
3+ const prodEnv = window .location .hostname === PROD_HOSTNAME ;
4+
5+ export default {
6+ data () {
7+ return {
8+ prodEnv,
9+ };
10+ },
11+ };
12+ </script >
Original file line number Diff line number Diff line change 200200 </ProfileSection >
201201
202202 <ProfileSection
203+ v-if =" prodEnv "
204+ section="access-groups"
205+ title="Access Groups"
206+ :userOnOwnProfile =" userOnOwnProfile "
207+ :empty =" true "
208+ :editable =" false "
209+ message="Support for Access Group management is coming soon."
210+ messageOwn="Support for Access Group management is coming soon."
211+ >
212+ </ProfileSection >
213+ <ProfileSection
214+ v-else
203215 section="access-groups"
204216 title="Access Groups"
205217 :userOnOwnProfile =" userOnOwnProfile "
@@ -236,6 +248,7 @@ import EditLanguages from './edit/EditLanguages.vue';
236248import EditIdentities from ' ./edit/EditIdentities.vue' ;
237249import EditPersonalInfo from ' @/components/profile/edit/EditPersonalInfo.vue' ;
238250import EditTags from ' ./edit/EditTags.vue' ;
251+ import EnvironmentMixin from ' @/components/_mixins/EnvironmentMixin.vue' ;
239252import Identities from ' @/assets/js/identities' ;
240253import ProfileNav from ' ./ProfileNav.vue' ;
241254import ProfileSection from ' ./ProfileSection.vue' ;
@@ -275,7 +288,7 @@ export default {
275288 uuid: Object ,
276289 primaryUsername: Object ,
277290 },
278- mixins: [AccountsMixin],
291+ mixins: [AccountsMixin, EnvironmentMixin ],
279292 components: {
280293 EditAccessGroups,
281294 EditAccounts,
You can’t perform that action at this time.
0 commit comments