From 352638ed90182320bbd502eed5e1f1bf6c8ba0b3 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Thu, 20 Nov 2025 10:36:23 +0100 Subject: [PATCH] code cleanup; --- .../Cis/Abgabetool/AbgabeMitarbeiterDetail.js | 6 +++--- .../Cis/Abgabetool/AbgabeStudentDetail.js | 3 --- .../Cis/Abgabetool/AbgabetoolMitarbeiter.js | 3 --- .../Cis/Abgabetool/AbgabetoolStudent.js | 5 +---- .../Cis/Abgabetool/DeadlineOverview.js | 16 ++++++++-------- 5 files changed, 12 insertions(+), 21 deletions(-) diff --git a/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js b/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js index aaffad68d..ae4777876 100644 --- a/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js +++ b/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js @@ -721,9 +721,9 @@ export const AbgabeMitarbeiterDetail = {
- {{ $p.t('abgabetool/c4signaturGefunden') }} - {{ $p.t('abgabetool/c4keineSignatur') }} - {{ $p.t('abgabetool/c4signaturServerError') }} + {{ $capitalize($p.t('abgabetool/c4signaturGefunden')) }} + {{ $capitalize($p.t('abgabetool/c4keineSignatur')) }} + {{ $capitalize($p.t('abgabetool/c4signaturServerError')) }}
{{ $p.t('abgabetool/c4noFileFound') }} diff --git a/public/js/components/Cis/Abgabetool/AbgabeStudentDetail.js b/public/js/components/Cis/Abgabetool/AbgabeStudentDetail.js index cca30d490..46e600d25 100644 --- a/public/js/components/Cis/Abgabetool/AbgabeStudentDetail.js +++ b/public/js/components/Cis/Abgabetool/AbgabeStudentDetail.js @@ -213,9 +213,6 @@ export const AbgabeStudentDetail = { } - }, - openBeurteilungLink(link) { - window.open(link, '_blank') }, getOptionLabel(option) { return option.sprache diff --git a/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js b/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js index aab23c737..245ff7cfb 100644 --- a/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js +++ b/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js @@ -1,6 +1,5 @@ import {CoreFilterCmpt} from "../../../components/filter/Filter.js"; import AbgabeDetail from "./AbgabeMitarbeiterDetail.js"; -import VerticalSplit from "../../verticalsplit/verticalsplit.js" import BsModal from '../../Bootstrap/Modal.js'; import VueDatePicker from '../../vueDatepicker.js.php'; import ApiAbgabe from '../../../api/factory/abgabe.js' @@ -11,7 +10,6 @@ export const AbgabetoolMitarbeiter = { BsModal, CoreFilterCmpt, AbgabeDetail, - VerticalSplit, Dropdown: primevue.dropdown, Textarea: primevue.textarea, VueDatePicker @@ -355,7 +353,6 @@ export const AbgabetoolMitarbeiter = { this.loadProjektarbeiten() - // this.$refs.verticalsplit.collapseBottom() this.calcMaxTableHeight() } diff --git a/public/js/components/Cis/Abgabetool/AbgabetoolStudent.js b/public/js/components/Cis/Abgabetool/AbgabetoolStudent.js index fec6f5b06..fea0cf58f 100644 --- a/public/js/components/Cis/Abgabetool/AbgabetoolStudent.js +++ b/public/js/components/Cis/Abgabetool/AbgabetoolStudent.js @@ -1,5 +1,4 @@ import AbgabeDetail from "./AbgabeStudentDetail.js"; -import VerticalSplit from "../../verticalsplit/verticalsplit.js"; import ApiAbgabe from '../../../api/factory/abgabe.js' import BsModal from "../../Bootstrap/Modal.js"; @@ -10,8 +9,7 @@ export const AbgabetoolStudent = { Accordion: primevue.accordion, AccordionTab: primevue.accordiontab, BsModal, - AbgabeDetail, - VerticalSplit + AbgabeDetail }, inject: ['isMobile'], provide() { @@ -124,7 +122,6 @@ export const AbgabetoolStudent = { this.selectedProjektarbeit = pa this.$refs.modalContainerAbgabeDetail.show() - // this.$refs.verticalsplit.showBoth() }).finally(()=>{this.loading=false}) }, diff --git a/public/js/components/Cis/Abgabetool/DeadlineOverview.js b/public/js/components/Cis/Abgabetool/DeadlineOverview.js index 25e781df2..d5db18ae9 100644 --- a/public/js/components/Cis/Abgabetool/DeadlineOverview.js +++ b/public/js/components/Cis/Abgabetool/DeadlineOverview.js @@ -30,15 +30,15 @@ export const DeadlineOverview = { height: 700, index: 'projektarbeit_id', layout: 'fitColumns', - placeholder: this.$p.t('global/noDataAvailable'), + placeholder: Vue.computed(() => this.$p.t('global/noDataAvailable')), columns: [ - {title: Vue.computed(() => this.$p.t('abgabetool/c4zieldatum')), field: 'datum', formatter: this.centeredTextFormatter, widthGrow: 1, tooltip: false}, - {title: Vue.computed(() => this.$p.t('abgabetool/c4fixterminv4')), field: 'fixterminstring', formatter: this.centeredTextFormatter, widthGrow: 1, tooltip: false}, - {title: Vue.computed(() => this.$p.t('abgabetool/c4abgabetypv2')), field: 'typ_bezeichnung', formatter: this.centeredTextFormatter, widthGrow: 1}, - {title: Vue.computed(() => this.$p.t('abgabetool/c4abgabekurzbz')), field: 'kurzbz', formatter: this.centeredTextFormatter, widthGrow: 3}, - {title: Vue.computed(() => this.$p.t('person/studentIn')), field: 'student', formatter: this.centeredTextFormatter, widthGrow: 2}, - {title: Vue.computed(() => this.$p.t('abgabetool/c4stg')), field: 'stg', formatter: this.centeredTextFormatter,widthGrow: 1}, - {title: Vue.computed(() => this.$p.t('abgabetool/c4sem')), field: 'semester', formatter: this.centeredTextFormatter, widthGrow: 1} + {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4zieldatum'))), field: 'datum', formatter: this.centeredTextFormatter, widthGrow: 1, tooltip: false}, + {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4fixterminv4'))), field: 'fixterminstring', formatter: this.centeredTextFormatter, widthGrow: 1, tooltip: false}, + {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4abgabetypv2'))), field: 'typ_bezeichnung', formatter: this.centeredTextFormatter, widthGrow: 1}, + {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4abgabekurzbz'))), field: 'kurzbz', formatter: this.centeredTextFormatter, widthGrow: 3}, + {title: Vue.computed(() => this.$capitalize(this.$p.t('person/studentIn'))), field: 'student', formatter: this.centeredTextFormatter, widthGrow: 2}, + {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4stg'))), field: 'stg', formatter: this.centeredTextFormatter,widthGrow: 1}, + {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4sem'))), field: 'semester', formatter: this.centeredTextFormatter, widthGrow: 1} ], persistence: false, },