Rml workorder/update new stuff
This commit is contained in:
@@ -120,8 +120,6 @@ Vue.component('tt-file-gallery', {
|
||||
this.editingFile = { ...file }; // create a copy for editing
|
||||
},
|
||||
cancelEdit(event) {
|
||||
console.log('Edit cancelled');
|
||||
event?.stopPropagation();
|
||||
this.editingFile = null;
|
||||
},
|
||||
saveEdit(event) {
|
||||
@@ -174,14 +172,14 @@ Vue.component('tt-file-gallery', {
|
||||
|
||||
<div class="tt-file-gallery-filename" :title="file.fileName">
|
||||
<span>{{ file.fileName }}</span>
|
||||
<i v-if="editMode && !editingFile" class="fas fa-edit text-primary ml-1 action-icon" @click="startEdit(file, $event)"></i>
|
||||
<i v-if="deleteMode && !editingFile" class="fas fa-trash text-danger ml-1 action-icon" @click="deleteFile(file, $event)"></i>
|
||||
<i v-if="editMode" class="fas fa-edit text-primary ml-1 action-icon" @click="startEdit(file, $event)"></i>
|
||||
<i v-if="deleteMode" class="fas fa-trash text-danger ml-1 action-icon" @click="deleteFile(file, $event)"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tt-modal v-if="editingFile" :show="true" title="Dokument bearbeiten" @close="cancelEdit" @submit="saveEdit" :delete="false">
|
||||
<tt-modal v-if="editingFile" :show="true" title="Dokument bearbeiten" @update:show="cancelEdit" @submit="saveEdit" :delete="false" :disable-min-height="true">
|
||||
<slot name="file-edit" :file="editingFile"></slot>
|
||||
</tt-modal>
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ Vue.component('tt-modal', {
|
||||
save: {type: Boolean, default: true},
|
||||
saveLoading: {type: Boolean, default: false},
|
||||
saveText: {type: String, default: 'Speichern'},
|
||||
disableMinHeight: {type: Boolean, default: false},
|
||||
}, watch: {
|
||||
show(newVal) {
|
||||
if (!newVal) {
|
||||
@@ -58,7 +59,7 @@ Vue.component('tt-modal', {
|
||||
@keydown.esc="$emit('update:show', false)"
|
||||
v-if="show">
|
||||
<div class="modal-dialog modal-lg modal-dialog-scrollable" role="document" @mousedown.stop>
|
||||
<div class="modal-content" style="min-height: 45vh;">
|
||||
<div class="modal-content" :style="{minHeight: disableMinHeight ? 'auto' : '45vh'}">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">{{title}}</h5>
|
||||
<button type="button" class="close" @click="$emit('update:show', false)">
|
||||
|
||||
@@ -581,7 +581,6 @@ Vue.component('tt-table', {
|
||||
filters: {
|
||||
handler: function () {
|
||||
if (!this.isInitialised) return;
|
||||
console.log('Filters changed:', this.filters);
|
||||
|
||||
// go through filters and if there is a set value in filters and the filter of the column is select or autocomplete then parse the value to int
|
||||
for (const key in this.filters) {
|
||||
|
||||
Reference in New Issue
Block a user