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>
import List from "./WorkingHours/List.svelte";
import Formular from "./WorkingHours/Formular.svelte";
export let params = {};
let TITLE = "Bearbeitung Einträge"
let activeRecord = null;
let newRecord = false;
</script>
<svelte:head>
@@ -17,7 +17,7 @@
<h1>{TITLE}</h1>
</header>
<article>
<List bind:activeRecord={activeRecord} bind:newRecord={newRecord}/>
<List bind:activeRecord={activeRecord}/>
</article>
</section>
{:else}
@@ -26,7 +26,7 @@
<h1>{TITLE}</h1>
</header>
<article>
<Formular bind:activeRecord={activeRecord} bind:newRecord={newRecord}/>
<Formular bind:activeRecord={activeRecord}/>
</article>
</section>
{/if}
@@ -6,7 +6,6 @@
import {TimekeepingDate} from "../../components/TimekeepingDate.svelte"
export let activeRecord = null
export let newRecord = false
const Controller = {
'saveRecord': () => {
WorkingHoursRepository.addOrUpdate(activeRecord.workingDay, activeRecord).then(() => {
@@ -20,7 +19,6 @@
},
'cancelActiveRecord': () => {
activeRecord = null;
newRecord = false;
}
}
</script>
-2
View File
@@ -3,7 +3,6 @@
import {TimekeepingDate} from "../../components/TimekeepingDate.svelte"
export let activeRecord = null
export let newRecord = false
let isLoading = true
let records = []
import IconifyIcon from '@iconify/svelte'
@@ -32,7 +31,6 @@
}),
'cancelActiveRecord': () => {
activeRecord = null;
newRecord = false;
}
}
Controller.listRecords()