1234567891011121314151617 |
- // 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,
- }
- }
|