This repository was archived by the owner on Apr 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 14
14
>
15
15
<nuxt-link v-else class =" item" to =" /dashboard" >Dashboard</nuxt-link >
16
16
<nuxt-link
17
- v-if =" activeOrganization && activeOrganization !== 'undefined'"
17
+ v-if ="
18
+ activeOrganization &&
19
+ activeOrganization !== 'undefined' &&
20
+ loggedInMembership !== 4
21
+ "
18
22
class =" item"
19
23
:to =" `/manage/${activeOrganization}/settings`"
20
24
>Settings</nuxt-link
@@ -204,12 +208,16 @@ export default class Card extends Vue {
204
208
notificationCount = 0 ;
205
209
showNav = false ;
206
210
activeOrganization: string | null = null ;
211
+ loggedInMembership = 3 ;
207
212
@Watch (" $route" )
208
213
private onRouteChanged() {
209
214
this .updateNavBar ();
210
215
}
211
216
private updateNavBar() {
212
217
this .showNav = false ;
218
+ this .loggedInMembership = parseInt (
219
+ this .$store .getters [" manage/loggedInMembership" ](this .$route .params .team )
220
+ );
213
221
if (this .$route .path .startsWith (" /onboarding" )) {
214
222
this .isVisible = false ;
215
223
} else {
@@ -232,6 +240,9 @@ export default class Card extends Vue {
232
240
this .updateNavBar ();
233
241
}
234
242
private created() {
243
+ this .loggedInMembership = parseInt (
244
+ this .$store .getters [" manage/loggedInMembership" ](this .$route .params .team )
245
+ );
235
246
if (typeof document !== " undefined" && document .body )
236
247
document .body .addEventListener (" click" , event => {
237
248
const path = event .composedPath ();
Original file line number Diff line number Diff line change 52
52
Update settings
53
53
</button >
54
54
</form >
55
- <Domains style =" margin-top : 2rem " />
55
+ <Domains v-if = " loggedInMembership !== 4 " style =" margin-top : 2rem " />
56
56
</main >
57
57
</template >
58
58
@@ -92,11 +92,15 @@ library.add(faSync);
92
92
export default class ManageSettings extends Vue {
93
93
loading = " " ;
94
94
organization: Organization = emptyOrganization ;
95
+ loggedInMembership = 3 ;
95
96
96
97
private created() {
97
98
this .organization = {
98
99
... this .$store .getters [" manage/organization" ](this .$route .params .team )
99
100
};
101
+ this .loggedInMembership = parseInt (
102
+ this .$store .getters [" manage/loggedInMembership" ](this .$route .params .team )
103
+ );
100
104
}
101
105
102
106
private load() {
You can’t perform that action at this time.
0 commit comments