Implemented org address creation modal logic

ref #72
This commit is contained in:
Nicolai Ort 2021-02-19 16:08:34 +01:00
parent 6d2431b683
commit 86f13003b5

View File

@ -52,9 +52,19 @@
text: "Organization is being added...",
duration: -1,
}).showToast();
let address = {};
if (address_checked === true) {
address = {
address1: address_input1_value,
address2: address_input2_value || "",
postalcode: address_zipcode_value,
city: address_city_value,
country: "DE",
};
}
RunnerOrganizationService.runnerOrganizationControllerPost({
name,
address: undefined,
address: address,
contact: undefined,
})
.then((result) => {