Hiding login and signup buttons when disabled.
This commit is contained in:
@@ -115,7 +115,7 @@
|
||||
</VDropdown>
|
||||
|
||||
<div
|
||||
v-else
|
||||
v-else-if="allowLogin"
|
||||
class="userpanel"
|
||||
>
|
||||
<a
|
||||
@@ -138,6 +138,7 @@ const pageContext = inject('pageContext');
|
||||
|
||||
const user = pageContext.user;
|
||||
const query = ref(pageContext.urlParsed.search.q || '');
|
||||
const allowLogin = pageContext.env.allowLogin;
|
||||
const searchFocused = ref(false);
|
||||
|
||||
const activePage = computed(() => pageContext.urlParsed.pathname.split('/')[1]);
|
||||
@@ -246,6 +247,11 @@ async function logout() {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
/* login disabled */
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.userpanel {
|
||||
|
||||
Reference in New Issue
Block a user