fix deselect condition on filtered datasets; added new phrases for confirm & edit dialog;

This commit is contained in:
Johann Hoffmann
2026-05-06 15:26:02 +02:00
parent d0adf2dfc3
commit 9e061de9bd
2 changed files with 105 additions and 4 deletions
@@ -308,6 +308,7 @@ export const AbgabetoolAssistenz = {
{
event: 'dataFiltered',
handler: (filters, rows) => {
console.log('dataFiltered', rows)
this.filteredRows = rows
this.filteredcount = rows.length
}
@@ -1048,7 +1049,7 @@ export const AbgabetoolAssistenz = {
// custom select all logic
const allowed = rows.filter(r => r.getData().selectable);
const selected = table.getRows().every(r => r.isSelected());
const selected = rows.every(r => r.isSelected());
if(selected){
allowed.forEach(r => r.deselect());
@@ -1066,7 +1067,7 @@ export const AbgabetoolAssistenz = {
// custom select all logic
const allowed = rows.filter(r => r.getData().selectable);
const selected = table.getRows().every(r => r.isSelected());
const selected = rows.every(r => r.isSelected());
if(selected){
allowed.forEach(r => r.deselect());
@@ -2596,12 +2597,12 @@ export const AbgabetoolAssistenz = {
:useSelectionSpan="false"
>
<template #actions>
<button style="max-height: 40px;" class="btn btn-danger border-0" @click="handleDeleteSelectedTermine">
<button style="max-height: 40px;" :disabled="!selectedcountFlat" class="btn btn-danger border-0" @click="handleDeleteSelectedTermine">
{{$capitalize( $p.t('abgabetool/c4delete') )}}
<i class="fa-solid fa-trash"></i>
</button>
<button @click="openEditModal" class="btn btn-success ml-2" role="button">
<button @click="openEditModal" :disabled="!selectedcountFlat" class="btn btn-success ml-2" role="button">
{{$capitalize( $p.t('abgabetool/c4edit') )}}
<i class="fa fa-pen"></i>
</button>
+100
View File
@@ -47121,6 +47121,106 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'abgabetool',
'phrase' => 'c4editTerminserie',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Mehrfachbearbeitung Termine',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Multiedit Deadlines',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'abgabetool',
'phrase' => 'c4nSelected',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => '{0} Termine zur Bearbeitung ausgewählt.',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => '{0} Deadlines selected for editing.',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'abgabetool',
'phrase' => 'c4confirm_edit_n_termine',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Möchten sie wirklich {0} Termine bearbeiten?',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Do you really want to edit {0} Deadlines?',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'abgabetool',
'phrase' => 'c4titelBearbeiten',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Titel bearbeiten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Edit title',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'abgabetool',
'phrase' => 'c4confirmTitelSpeichern',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Möchten Sie den Titel wirklich bearbeiten?',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Do you really want to edit the title?',
'description' => '',
'insertvon' => 'system'
)
)
),
// ABGABETOOL PHRASEN END
array(
'app' => 'core',