forked from verdnatura/salix-front
fix: ticket notes translation and deleted useless code
This commit is contained in:
parent
07ba02aec8
commit
e764f4066f
|
@ -269,7 +269,7 @@ function toTicketUrl(section) {
|
||||||
<QCard class="vn-one" v-if="entity.notes.length">
|
<QCard class="vn-one" v-if="entity.notes.length">
|
||||||
<VnTitle
|
<VnTitle
|
||||||
:url="toTicketUrl('observation')"
|
:url="toTicketUrl('observation')"
|
||||||
:text="t('ticket.pageTitles.notes')"
|
:text="t('globals.pageTitles.notes')"
|
||||||
/>
|
/>
|
||||||
<QVirtualScroll
|
<QVirtualScroll
|
||||||
:items="entity.notes"
|
:items="entity.notes"
|
||||||
|
|
|
@ -67,12 +67,7 @@ const exclusionGeoCreate = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const exclusionCreate = async () => {
|
const exclusionCreate = async () => {
|
||||||
if (isNew.value)
|
await axios.post(`Zones/${route.params.id}/exclusions`, [{ dated: dated }]);
|
||||||
await axios.post(`Zones/${route.params.id}/exclusions`, [{ dated: dated }]);
|
|
||||||
else
|
|
||||||
await axios.post(`Zones/${route.params.id}/exclusions`, {
|
|
||||||
dated: dated,
|
|
||||||
});
|
|
||||||
await refetchEvents();
|
await refetchEvents();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue