From 24302430287106d1f380d28b5ef51c27e48b6cb6 Mon Sep 17 00:00:00 2001 From: Simon Giesel Date: Tue, 18 Jul 2023 19:08:21 +0200 Subject: [PATCH] feat(webapp): change wage to daily in wording, add max value for bank input and allow admin to get realtime updates in bank view again --- webapp/package.json | 2 +- .../components/atoms/AtomCurrencyInput.vue | 12 +++---- .../molecules/MoleculeDataTable.vue | 2 +- .../molecules/MoleculeInputModal.vue | 1 + webapp/src/components/views/ViewBank.vue | 31 +++++++++++++------ webapp/src/components/views/ViewEmployer.vue | 4 +-- .../src/components/views/ViewStatePortal.vue | 4 +-- 7 files changed, 35 insertions(+), 21 deletions(-) diff --git a/webapp/package.json b/webapp/package.json index 1581996..2a6ddac 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -2,7 +2,7 @@ "name": "hgoe-sas", "private": true, "author": "Simon Giesel", - "version": "1.3.2", + "version": "1.3.6", "scripts": { "dev": "vite", "build": "vue-tsc --noEmit && vite build", diff --git a/webapp/src/components/atoms/AtomCurrencyInput.vue b/webapp/src/components/atoms/AtomCurrencyInput.vue index f078ebc..9eb11f7 100644 --- a/webapp/src/components/atoms/AtomCurrencyInput.vue +++ b/webapp/src/components/atoms/AtomCurrencyInput.vue @@ -5,8 +5,8 @@ type="number" class="input w-full border-primary text-right" :class="{ - 'pr-[5.5rem]': !perHour, - 'pr-[7rem]': perHour, + 'pr-[5.5rem]': !perDay, + 'pr-[8rem]': perDay, '!border-error': error, }" step="1" @@ -19,10 +19,10 @@ :class="{ '-mt-3': !suffixMargin, 'mt-[-0.625rem]': suffixMargin, - 'ml-[-5.5rem]': !perHour, - 'ml-[-7rem]': perHour, + 'ml-[-5.5rem]': !perDay, + 'ml-[-8rem]': perDay, }" - >,00 Batzen{{ perHour ? ' / h' : '' }} + >,00 Batzen{{ perDay ? ' / Tag' : '' }} @@ -34,7 +34,7 @@ const error = ref(false); const props = withDefaults(defineProps<{ suffixMargin?: boolean, - perHour?: boolean, + perDay?: boolean, min?: number, max?: number, value?: number, diff --git a/webapp/src/components/molecules/MoleculeDataTable.vue b/webapp/src/components/molecules/MoleculeDataTable.vue index 90dbc91..3574991 100644 --- a/webapp/src/components/molecules/MoleculeDataTable.vue +++ b/webapp/src/components/molecules/MoleculeDataTable.vue @@ -89,7 +89,7 @@ diff --git a/webapp/src/components/views/ViewBank.vue b/webapp/src/components/views/ViewBank.vue index f059821..38a1d22 100644 --- a/webapp/src/components/views/ViewBank.vue +++ b/webapp/src/components/views/ViewBank.vue @@ -1,6 +1,6 @@