mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-22 14:59:34 +00:00
feat(search, header) reworked header and search
This commit is contained in:
1 parent
e0d6ae57b3
commit
4f8c8499c2
242 files changed
+21094
-2061
No files matched your search
@@ -11,13 +11,13 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr class="cursor-pointer" v-for="subtask in subtasks" :key="subtask.id" @click.stop="editTask(subtask, false)">
|
||||
<tr v-for="subtask in subtasks" :key="subtask.id" class="cursor-pointer" @click.stop="editTask(subtask, false)">
|
||||
|
||||
<td>{{ subtask.project_code }}</td>
|
||||
<td>{{ subtask.title ?? subtask.master_task }}</td>
|
||||
<td v-if="subtask?.deadline">{{ getDeadline(subtask) }}</td>
|
||||
<v-tooltip text="Deadline z Mastertasku" location="end">
|
||||
<template v-slot:activator="{ props }">
|
||||
<template #activator="{ props }">
|
||||
<td v-if="!subtask.deadline" v-bind="props">{{ getDeadline(subtask) }}*</td>
|
||||
</template>
|
||||
</v-tooltip>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<Z-tasks-search @search="onSearch" @employee-selected="onEmployeeSelected" @update-sort-order="onUpdateSortOrder" />
|
||||
|
||||
<W-loadable :content="filteredUnscheduledTasks" :emptyMessage="searchQuery.length ? 'Neboli nájdené žiadne úlohy' : 'Nenašli sa žiadne záznamy'">
|
||||
<W-loadable :content="filteredUnscheduledTasks" :empty-message="searchQuery.length ? 'Neboli nájdené žiadne úlohy' : 'Nenašli sa žiadne záznamy'">
|
||||
<A-unscheduled-table :subtasks="filteredUnscheduledTasks" />
|
||||
</W-loadable>
|
||||
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
if (!this.unscheduledSubtasks)
|
||||
return null
|
||||
|
||||
let filteredSubtasks = this.unscheduledSubtasks.filter(subtask => {
|
||||
const filteredSubtasks = this.unscheduledSubtasks.filter(subtask => {
|
||||
return this.filterParams(this.searchQuery, subtask.master_task?.name || subtask.title) || this.filterParams(this.searchQuery, subtask.project_code)
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user