feat: cleanup TeamDetail + OrgDetail
This commit is contained in:
		@@ -3,18 +3,17 @@
 | 
			
		||||
		GroupContactService,
 | 
			
		||||
		RunnerOrganizationService,
 | 
			
		||||
	} from "@odit/lfk-client-js";
 | 
			
		||||
	import { getLocaleFromNavigator, _ } from "svelte-i18n";
 | 
			
		||||
	import toast from "svelte-french-toast";
 | 
			
		||||
 | 
			
		||||
	import store from "../../store";
 | 
			
		||||
	import ConfirmOrgDeletion from "./ConfirmOrgDeletion.svelte";
 | 
			
		||||
	import ImportRunnerModal from "../runners/ImportRunnerModal.svelte";
 | 
			
		||||
	import PromiseError from "../base/PromiseError.svelte";
 | 
			
		||||
	import { _ } from "svelte-i18n";
 | 
			
		||||
	import { tick } from "svelte";
 | 
			
		||||
	import Select from "svelte-select";
 | 
			
		||||
	import GenerateSponsoringContracts from "../pdf_generation/GenerateSponsoringContracts.svelte";
 | 
			
		||||
	import store from "../../store";
 | 
			
		||||
	import PromiseError from "../base/PromiseError.svelte";
 | 
			
		||||
	import GenerateRunnerCards from "../pdf_generation/GenerateRunnerCards.svelte";
 | 
			
		||||
	import GenerateRunnerCertificates from "../pdf_generation/GenerateRunnerCertificates.svelte";
 | 
			
		||||
	import { tick } from "svelte";
 | 
			
		||||
	import GenerateSponsoringContracts from "../pdf_generation/GenerateSponsoringContracts.svelte";
 | 
			
		||||
	import ImportRunnerModal from "../runners/ImportRunnerModal.svelte";
 | 
			
		||||
	import ConfirmOrgDeletion from "./ConfirmOrgDeletion.svelte";
 | 
			
		||||
	$: delete_triggered = false;
 | 
			
		||||
	$: address_valid_or_none =
 | 
			
		||||
		(isAddress1Valid && iszipcodevalid && iscityvalid) ||
 | 
			
		||||
@@ -25,7 +24,6 @@
 | 
			
		||||
	let contacts = [];
 | 
			
		||||
	let valueCopy = null;
 | 
			
		||||
	let areaDom;
 | 
			
		||||
	let copied = false;
 | 
			
		||||
	export let params;
 | 
			
		||||
	$: editable = {};
 | 
			
		||||
	$: contact = {};
 | 
			
		||||
@@ -123,7 +121,6 @@
 | 
			
		||||
				throw new Error();
 | 
			
		||||
			}
 | 
			
		||||
			toast($_("copied-link-to-clipboard"));
 | 
			
		||||
			copied = true;
 | 
			
		||||
		} catch (err) {
 | 
			
		||||
			toast.error($_("error-whyile-copying-to-clipboard"));
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -112,71 +112,24 @@
 | 
			
		||||
			<div class="w-full">
 | 
			
		||||
				<nav class="w-full flex">
 | 
			
		||||
					<ol class="list-none flex flex-row items-center justify-start">
 | 
			
		||||
						<li class="mr-2 flex items-center">
 | 
			
		||||
							<svg
 | 
			
		||||
								stroke="currentColor"
 | 
			
		||||
								fill="none"
 | 
			
		||||
								stroke-width="2"
 | 
			
		||||
								viewBox="0 0 24 24"
 | 
			
		||||
								stroke-linecap="round"
 | 
			
		||||
								stroke-linejoin="round"
 | 
			
		||||
								class="h-3 w-3 stroke-current"
 | 
			
		||||
								height="1em"
 | 
			
		||||
								width="1em"
 | 
			
		||||
								xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
								><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />
 | 
			
		||||
								<polyline points="9 22 9 12 15 12 15 22" /></svg
 | 
			
		||||
							>
 | 
			
		||||
						</li>
 | 
			
		||||
						<li class="flex items-center">
 | 
			
		||||
							<a class="mr-2" href="/">Home</a><svg
 | 
			
		||||
								stroke="currentColor"
 | 
			
		||||
								fill="none"
 | 
			
		||||
								stroke-width="2"
 | 
			
		||||
								viewBox="0 0 24 24"
 | 
			
		||||
								stroke-linecap="round"
 | 
			
		||||
								stroke-linejoin="round"
 | 
			
		||||
								class="h-3 w-3 mr-2 stroke-current"
 | 
			
		||||
								height="1em"
 | 
			
		||||
								width="1em"
 | 
			
		||||
								xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
								><line x1="5" y1="12" x2="19" y2="12" />
 | 
			
		||||
								<polyline points="12 5 19 12 12 19" /></svg
 | 
			
		||||
							<a class="mr-2" href="./"
 | 
			
		||||
								><svg
 | 
			
		||||
									xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
									width="24"
 | 
			
		||||
									height="24"
 | 
			
		||||
									viewBox="0 0 24 24"
 | 
			
		||||
									fill="none"
 | 
			
		||||
									stroke="currentColor"
 | 
			
		||||
									stroke-width="2"
 | 
			
		||||
									stroke-linecap="round"
 | 
			
		||||
									stroke-linejoin="round"
 | 
			
		||||
									class="inline-block"
 | 
			
		||||
									><path d="m12 19-7-7 7-7" /><path d="M19 12H5" /></svg
 | 
			
		||||
								>
 | 
			
		||||
								{$_("teams")}</a
 | 
			
		||||
							>
 | 
			
		||||
						</li>
 | 
			
		||||
						<li class="mr-2 flex items-center">
 | 
			
		||||
							<svg
 | 
			
		||||
								class="flex-shrink-0 w-5 h-5 mr-2"
 | 
			
		||||
								fill="currentColor"
 | 
			
		||||
								width="24"
 | 
			
		||||
								height="24"
 | 
			
		||||
								xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
								viewBox="0 0 640 512"
 | 
			
		||||
								><path
 | 
			
		||||
									fill="currentColor"
 | 
			
		||||
									d="M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"
 | 
			
		||||
								/></svg
 | 
			
		||||
							>
 | 
			
		||||
						</li>
 | 
			
		||||
						<li class="flex items-center">
 | 
			
		||||
							<a class="mr-2" href="./">Teams</a><svg
 | 
			
		||||
								stroke="currentColor"
 | 
			
		||||
								fill="none"
 | 
			
		||||
								stroke-width="2"
 | 
			
		||||
								viewBox="0 0 24 24"
 | 
			
		||||
								stroke-linecap="round"
 | 
			
		||||
								stroke-linejoin="round"
 | 
			
		||||
								class="h-3 w-3 mr-2 stroke-current"
 | 
			
		||||
								height="1em"
 | 
			
		||||
								width="1em"
 | 
			
		||||
								xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
								><line x1="5" y1="12" x2="19" y2="12" />
 | 
			
		||||
								<polyline points="12 5 19 12 12 19" /></svg
 | 
			
		||||
							>
 | 
			
		||||
						</li>
 | 
			
		||||
						<li class="flex items-center">
 | 
			
		||||
							<span class="mr-2">Team-Details #{params.teamid}</span>
 | 
			
		||||
						</li>
 | 
			
		||||
					</ol>
 | 
			
		||||
				</nav>
 | 
			
		||||
			</div>
 | 
			
		||||
@@ -185,7 +138,7 @@
 | 
			
		||||
			{#if group}
 | 
			
		||||
				{group.label}{" > "}
 | 
			
		||||
			{/if}
 | 
			
		||||
			{original.name}
 | 
			
		||||
			{original.name} [#{params.teamid}]
 | 
			
		||||
			<span data-id="org_actions_${teamdata.id}">
 | 
			
		||||
				<GenerateSponsoringContracts
 | 
			
		||||
					bind:sponsoring_contracts_show
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user