Refactor: Bereinige von nicht genutzten Variablen

This commit is contained in:
2022-01-10 14:17:43 +01:00
parent cf50607f43
commit efadeb501b
3 changed files with 3 additions and 7 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
<script> <script>
import List from "./WorkingHours/List.svelte"; import List from "./WorkingHours/List.svelte";
import Formular from "./WorkingHours/Formular.svelte"; import Formular from "./WorkingHours/Formular.svelte";
export let params = {};
let TITLE = "Bearbeitung Einträge" let TITLE = "Bearbeitung Einträge"
let activeRecord = null; let activeRecord = null;
let newRecord = false;
</script> </script>
<svelte:head> <svelte:head>
@@ -17,7 +17,7 @@
<h1>{TITLE}</h1> <h1>{TITLE}</h1>
</header> </header>
<article> <article>
<List bind:activeRecord={activeRecord} bind:newRecord={newRecord}/> <List bind:activeRecord={activeRecord}/>
</article> </article>
</section> </section>
{:else} {:else}
@@ -26,7 +26,7 @@
<h1>{TITLE}</h1> <h1>{TITLE}</h1>
</header> </header>
<article> <article>
<Formular bind:activeRecord={activeRecord} bind:newRecord={newRecord}/> <Formular bind:activeRecord={activeRecord}/>
</article> </article>
</section> </section>
{/if} {/if}
@@ -6,7 +6,6 @@
import {TimekeepingDate} from "../../components/TimekeepingDate.svelte" import {TimekeepingDate} from "../../components/TimekeepingDate.svelte"
export let activeRecord = null export let activeRecord = null
export let newRecord = false
const Controller = { const Controller = {
'saveRecord': () => { 'saveRecord': () => {
WorkingHoursRepository.addOrUpdate(activeRecord.workingDay, activeRecord).then(() => { WorkingHoursRepository.addOrUpdate(activeRecord.workingDay, activeRecord).then(() => {
@@ -20,7 +19,6 @@
}, },
'cancelActiveRecord': () => { 'cancelActiveRecord': () => {
activeRecord = null; activeRecord = null;
newRecord = false;
} }
} }
</script> </script>
-2
View File
@@ -3,7 +3,6 @@
import {TimekeepingDate} from "../../components/TimekeepingDate.svelte" import {TimekeepingDate} from "../../components/TimekeepingDate.svelte"
export let activeRecord = null export let activeRecord = null
export let newRecord = false
let isLoading = true let isLoading = true
let records = [] let records = []
import IconifyIcon from '@iconify/svelte' import IconifyIcon from '@iconify/svelte'
@@ -32,7 +31,6 @@
}), }),
'cancelActiveRecord': () => { 'cancelActiveRecord': () => {
activeRecord = null; activeRecord = null;
newRecord = false;
} }
} }
Controller.listRecords() Controller.listRecords()