0
0
Fork 0

refs #6980 remove code

This commit is contained in:
Carlos Satorres 2024-03-04 11:25:15 +01:00
parent e708e0cd6d
commit 37baa9bcac
1 changed files with 2 additions and 14 deletions

View File

@ -3,16 +3,10 @@ import { onMounted, ref, watch } from 'vue';
import axios from 'axios';
import SkeletonSummary from 'components/ui/SkeletonSummary.vue';
import VnLv from 'src/components/ui/VnLv.vue';
import { useRoute } from 'vue-router';
const route = useRoute();
onMounted(() => fetch());
const entity = ref();
const isSummary = ref(true);
onMounted(() => {
isSummary.value = !String(route.path).endsWith('/summary');
fetch();
});
const props = defineProps({
url: {
type: String,
@ -54,13 +48,7 @@ watch(props, async () => {
<template v-if="entity">
<div class="summaryHeader bg-primary q-pa-md text-weight-bolder">
<slot name="header-left">
<span
><QIcon
v-if="isSummary"
name="open_in_new"
color="white"
size="sm"
/></span>
<span></span>
</slot>
<slot name="header" :entity="entity">
<VnLv :label="`${entity.id} -`" :value="entity.name" />