Removed default top redirection setting.

Simple users will be redirected to webmail by default (if enabled)
This commit is contained in:
Antoine Nguyen
2026-02-03 14:25:06 +01:00
parent 01b4527f5f
commit b577f12f88
7 changed files with 25 additions and 40 deletions
+3 -7
View File
@@ -94,11 +94,10 @@
</template>
<script setup>
import { computed, onMounted, ref } from 'vue'
import { computed, onMounted } from 'vue'
import { getActivePinia } from 'pinia'
import { useGettext } from 'vue3-gettext'
import { useGlobalStore } from '@/stores'
import accountApi from '@/api/account'
const props = defineProps({
user: {
@@ -114,8 +113,7 @@ const props = defineProps({
const { $gettext } = useGettext()
const globalStore = useGlobalStore()
const applications = ref([])
const applications = computed(() => globalStore.applications)
const userInitials = computed(() => {
if (props.user.first_name && props.user.last_name) {
return `${props.user.first_name[0].toUpperCase()}${props.user.last_name[0].toUpperCase()}`
@@ -148,9 +146,7 @@ async function logout() {
}
onMounted(() => {
accountApi.getAvailableApplications().then((resp) => {
applications.value = resp.data
})
globalStore.fetchAvailableApplications()
globalStore.fetchNotifications()
})
</script>