mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-04 12:24:09 +01:00
Fixed various frontend issues
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, ref } from 'vue'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { useGettext } from 'vue3-gettext'
|
||||
import { useRoute } from 'vue-router'
|
||||
import ParametersForm from '@/components/tools/ParametersForm'
|
||||
@@ -39,6 +39,10 @@ function loadParams(app) {
|
||||
})
|
||||
}
|
||||
|
||||
watch(route, (toRoute) => {
|
||||
loadParams(toRoute.params.app)
|
||||
})
|
||||
|
||||
loadParams(route.params.app)
|
||||
</script>
|
||||
|
||||
|
||||
@@ -11,12 +11,15 @@ import DomainEditForm from '@/components/admin/domains/DomainEditForm'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { ref } from 'vue'
|
||||
import domainsApi from '@/api/domains'
|
||||
import { useDomainsStore } from '@/stores'
|
||||
|
||||
const { $gettext } = useGettext()
|
||||
const route = useRoute()
|
||||
const domainsStore = useDomainsStore()
|
||||
|
||||
const domain = ref({})
|
||||
|
||||
domainsStore.getDomains()
|
||||
domainsApi.getDomain(route.params.id).then((resp) => {
|
||||
domain.value = resp.data
|
||||
})
|
||||
|
||||
@@ -252,8 +252,9 @@ async function deleteCalendar(calendarPk) {
|
||||
}
|
||||
await api.deleteUserCalendar(calendarPk)
|
||||
const fullc = calendarRef.value.getApi()
|
||||
const evtSource = fullc.getEventSourceById(`user-${calendar.pk}`)
|
||||
const evtSource = fullc.getEventSourceById(`user-${calendarPk}`)
|
||||
evtSource.remove()
|
||||
fetchUserCalendars()
|
||||
busStore.displayNotification({ msg: $gettext('Calendar deleted') })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user