feature-ui/speichern-und-weiter #22

Merged
TorstenHettstedt merged 5 commits from feature-ui/speichern-und-weiter into master 2022-01-10 15:51:17 +01:00
3 changed files with 3 additions and 7 deletions
Showing only changes of commit efadeb501b - Show all commits
+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()