Skip to content

Commit 63a8570

Browse files
fix(app): read initial action code from reactive ref instead of route.params
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent acfca62 commit 63a8570

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/App.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ import LeftSidebar from './components/LeftSidebar/LeftSidebar.vue'
3737
import RightSidebar from './components/RightSidebar/RightSidebar.vue'
3838
import DefaultPageError from './views/DefaultPageError.vue'
3939
40+
import { initialActionCode, ACTION_CODES } from './helpers/ActionMapping'
4041
import LogoLibreSign from '../img/logo-gray.svg'
4142
4243
const route = useRoute()
4344
const loading = ref(false)
4445
4546
const isRoot = computed(() => route.path === '/')
4647
const isSignExternalPage = computed(() => route.path.startsWith('/p/'))
47-
const isDoNothingError = computed(() => (route.params?.action as number | undefined) === 2000)
48+
const isDoNothingError = computed(() => initialActionCode.value === ACTION_CODES.DO_NOTHING)
4849
const showLeftSidebar = computed(() => !route.matched.some(record => record.meta?.hideLeftSidebar === true))
4950
</script>
5051

0 commit comments

Comments
 (0)