mini fix in travel termograph create
This commit is contained in:
parent
f0778daaa6
commit
26a1b29070
|
@ -100,7 +100,7 @@ const openRemoveDialog = async (id) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const redirectToThermographForm = (action, { id = null }) => {
|
const redirectToThermographForm = (action, id = null) => {
|
||||||
const routeDetails = {
|
const routeDetails = {
|
||||||
name: action === 'create' ? 'TravelThermographsCreate' : 'TravelThermographsEdit',
|
name: action === 'create' ? 'TravelThermographsCreate' : 'TravelThermographsEdit',
|
||||||
};
|
};
|
||||||
|
@ -162,7 +162,7 @@ const removeThermograph = async (id) => {
|
||||||
color="primary"
|
color="primary"
|
||||||
size="sm"
|
size="sm"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
@click="redirectToThermographForm('edit', row)"
|
@click="redirectToThermographForm('edit', row.id)"
|
||||||
>
|
>
|
||||||
<QTooltip>{{ t('Edit file') }}</QTooltip>
|
<QTooltip>{{ t('Edit file') }}</QTooltip>
|
||||||
</QIcon>
|
</QIcon>
|
||||||
|
|
Loading…
Reference in New Issue