diff --git a/app/pages/label/[type]/[mg].vue b/app/pages/label/[type]/[mg].vue index 1af3f58..b482017 100644 --- a/app/pages/label/[type]/[mg].vue +++ b/app/pages/label/[type]/[mg].vue @@ -3,20 +3,27 @@ definePageMeta({ layout: 'bare' }) const dims = { width: 45, height: 14 } const route = useRoute() const { type, mg } = route.params +// label is type with the underscore at the end removed +const label = computed(() => type ? type.replace(/_$/, '') : '') +// uppercase is true if there is an underscore at the end of type +const uppercase = computed(() => type ? type.endsWith('_') : false)