Update default vehicle data and refactor i18n usage in MassDataInserterModal

- Adjusted default values in `VehicleDataStructure.vue` (`customer_id` and `type`).
- Refactored i18n integration in `MassDataInserterModal.vue` to use `i18n.global.t` for improved consistency.
This commit is contained in:
Jeppe Bundgaard
2026-02-18 10:59:49 +01:00
parent a978675899
commit a26d33b714
2 changed files with 4 additions and 4 deletions
@@ -1,8 +1,8 @@
<script setup>
import { ref, defineProps, defineEmits } from "vue";
import { useI18n } from "vue-i18n";
import i18n from "@/i18n";
const { t } = useI18n();
const t = i18n.global.t;
import { SessionUser } from "@/components/session/token/SessionUser.vue";
import { getTitle, getDataColumns, getDataRows, setDataRows, getSaveFunction, clearProgress, progress, getCompleted, setCompleted, getResponses, setResponses, getParsedDataFormatFunction } from "@/components/forms/other/MassDataInserter.vue";
import MassDataInsertTable from "@/components/forms/other/elements/MassDataInsertTable.vue";
@@ -52,10 +52,10 @@ export const init = () => {
// Check if the window is in /superuser/users/user
// Define the default object
let defaultObject = {
customer_id: 70130180,
customer_id: 43323914,
reg: null,
wash_subscription: false,
type: 2,
type: 0,
reference: null,
};
// Skip checks: