diff --git a/src/components/orgs/OrgDetail.svelte b/src/components/orgs/OrgDetail.svelte index b98fa07a..5217a7dc 100644 --- a/src/components/orgs/OrgDetail.svelte +++ b/src/components/orgs/OrgDetail.svelte @@ -3,7 +3,7 @@ GroupContactService, RunnerOrganizationService, } from "@odit/lfk-client-js"; - import { _ } from "svelte-i18n"; + import { getLocaleFromNavigator, _ } from "svelte-i18n"; import Toastify from "toastify-js"; import store from "../../store"; import ConfirmOrgDeletion from "./ConfirmOrgDeletion.svelte"; @@ -35,14 +35,14 @@ } } value.address_checked = value.address.address1 !== null; - if(value.address_checked===false){ + if (value.address_checked === false) { value.address = { address1: "", address2: "", city: "", postalcode: "", - country: "" - } + country: "", + }; } editable = Object.assign(editable, value); editable = editable; @@ -82,7 +82,6 @@ if (postdata.address_checked === false) { postdata.address = null; } - console.log(postdata) postdata.contact = postdata.contact === "null" ? null : postdata.contact; RunnerOrganizationService.runnerOrganizationControllerPut( original_object.id, @@ -119,6 +118,34 @@
{original_object.name} + {#if store.state.jwtinfo.userdetails.permissions.includes('RUNNER:IMPORT')}