@@ -38,30 +38,34 @@ export default {
38
38
version () { return AppConfig .version ; },
39
39
release () { return AppConfig .release ; },
40
40
siteName () { return AppConfig .theme .site_name ; },
41
- user () { return Session .user (); }
41
+ user () { return Session .user (); },
42
+ isSignedIn () { return Session .isSignedIn (); }
42
43
}
43
44
};
44
45
45
46
</script >
46
47
47
48
<template lang="pug">
48
49
div.user-dropdown
49
- v-list-item( v-if ="!user.experiences['sidebar']" @click ="togglePinned" dense )
50
- v-list-item-title( v-t ="'user_dropdown.pin_sidebar'" )
50
+
51
+ template( v-if ="isSignedIn" )
52
+ v-list-item( v-if ="!user.experiences['sidebar']" @click ="togglePinned" dense )
53
+ v-list-item-title( v-t ="'user_dropdown.pin_sidebar'" )
54
+ v-list-item-icon
55
+ common-icon( name ="mdi-pin" )
56
+ v-list-item( v-if ="user.experiences['sidebar']" @click ="togglePinned" dense )
57
+ v-list-item-title( v-t ="'user_dropdown.unpin_sidebar'" )
58
+ v-list-item-icon
59
+ common-icon( name ="mdi-pin-off" )
60
+ v-list-item.user-dropdown__list-item-button--profile ( to ="/profile" dense )
61
+ v-list-item-title( v-t ="'user_dropdown.edit_profile'" )
51
62
v-list-item-icon
52
- common-icon( name ="mdi-pin " )
53
- v-list-item( v-if = "user.experiences['sidebar']" @click = "togglePinned " dense )
54
- v-list-item-title( v-t ="'user_dropdown.unpin_sidebar '" )
63
+ common-icon( name ="mdi-account " )
64
+ v-list-item.user-dropdown__list-item-button--email-settings ( to = "/email_preferences " dense )
65
+ v-list-item-title( v-t ="'user_dropdown.email_settings '" )
55
66
v-list-item-icon
56
- common-icon( name ="mdi-pin-off" )
57
- v-list-item.user-dropdown__list-item-button--profile ( to ="/profile" dense )
58
- v-list-item-title( v-t ="'user_dropdown.edit_profile'" )
59
- v-list-item-icon
60
- common-icon( name ="mdi-account" )
61
- v-list-item.user-dropdown__list-item-button--email-settings ( to ="/email_preferences" dense )
62
- v-list-item-title( v-t ="'user_dropdown.email_settings'" )
63
- v-list-item-icon
64
- common-icon( name ="mdi-cog-outline" )
67
+ common-icon( name ="mdi-cog-outline" )
68
+
65
69
v-list-item( v-if ="!isDark" @click ="toggleDark" dense )
66
70
v-list-item-title( v-t ="'user_dropdown.enable_dark_mode'" )
67
71
v-list-item-icon
@@ -70,10 +74,13 @@ div.user-dropdown
70
74
v-list-item-title( v-t ="'user_dropdown.disable_dark_mode'" )
71
75
v-list-item-icon
72
76
common-icon( name ="mdi-white-balance-sunny" )
73
- v-list-item( @click ="signOut()" dense )
74
- v-list-item-title( v-t ="'user_dropdown.sign_out'" )
75
- v-list-item-icon
76
- common-icon( name ="mdi-exit-to-app" )
77
+
78
+ template( v-if ="isSignedIn" )
79
+ v-list-item( @click ="signOut()" dense )
80
+ v-list-item-title( v-t ="'user_dropdown.sign_out'" )
81
+ v-list-item-icon
82
+ common-icon( name ="mdi-exit-to-app" )
83
+
77
84
v-list-item( href ="https://github.com/loomio/loomio/releases" target ="_blank" dense :title ="release" )
78
85
v-list-item-title.text--secondary
79
86
span( v-t ="'common.version'" )
0 commit comments