mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-13 17:45:36 +00:00
feat: Mega entity improvements - entity directories, inehrit entities (#450), ordering (#762 / #703), better entity view
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<button @click="router.push({ name: 'Dashboard', params: { title: component.title } })">
|
||||
<button @click="navigateToDirectory">
|
||||
{{ component.title }}
|
||||
</button>
|
||||
</template>
|
||||
@@ -15,6 +15,17 @@ const props = defineProps({
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
function navigateToDirectory() {
|
||||
const params = { title: props.component.title }
|
||||
|
||||
if (props.component.entityType && props.component.entityKey) {
|
||||
params.entityType = props.component.entityType
|
||||
params.entityKey = props.component.entityKey
|
||||
}
|
||||
|
||||
router.push({ name: 'Dashboard', params })
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user