123456789101112131415161718 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import { ref } from 'vue'
- import { ViewTransitions } from './types.ts'
- const viewTransition = ref<ViewTransitions>(ViewTransitions.Replace)
- export const useViewTransition = () => {
- const setViewTransition = (newViewTransition: ViewTransitions) => {
- viewTransition.value = newViewTransition
- }
- return {
- setViewTransition,
- viewTransition,
- }
- }
|