Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions resources/js/common/PMColumnFilterPopoverCommonMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,10 @@ const PMColumnFilterCommonMixin = {
this.tableHeaders[i].sortDesc = false;
}
for (let i in this.tableHeaders) {
if (this.tableHeaders[i].field === this.orderBy) {
if (this.orderBy.endsWith(this.tableHeaders[i].field)) {
let sort = this.sortOrder[0].direction;
this.tableHeaders[i].sortAsc = (sort.toLowerCase() === "asc");
this.tableHeaders[i].sortDesc = (sort.toLowerCase() === "desc");
this.tableHeaders[i].filterApplied = true;
}
}
for (let i in this.tableHeaders) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
export default {
components: {
PMColumnFilterForm,
PMColumnFilterIconThreeDots
PMColumnFilterIconThreeDots,
},
props: [
"container",
Expand All @@ -60,7 +60,7 @@
"hideSortingButtons",
"columnSortAsc",
"columnSortDesc",
"filterApplied"
"filterApplied",
],
data() {
return {
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/shared/FilterTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:id="`${tableName}-column-${index}`"
:key="index"
class="pm-table-ellipsis-column"
:class="{ 'pm-table-filter-applied': column.filterApplied }"
:class="{ 'pm-table-filter-applied': column.filterApplied || column.sortAsc || column.sortDesc }"
:style="{ width: column.fixed_width + 'px' }"
>
<div
Expand Down Expand Up @@ -76,7 +76,7 @@
<slot :name="`row-${rowIndex}`">
<td
v-for="(header, index) in visibleHeaders"
:class="{ 'pm-table-filter-applied-tbody': column.filterApplied }"
:class="{ 'pm-table-filter-applied-tbody': column.sortAsc || column.sortDesc }"
:key="index"
>
<template v-if="containsHTML(getNestedPropertyValue(row, header))">
Expand Down
3 changes: 3 additions & 0 deletions resources/js/requests/components/RequestsListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ export default {
cancelToken: new CancelToken((c) => {
this.cancelToken = c;
}),
headers: {
'Cache-Control': 'no-cache',
}
},
)
.then((response) => {
Expand Down
5 changes: 4 additions & 1 deletion resources/js/tasks/components/ListMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ const ListMixin = {
advancedFilter +
this.columnsQuery,

{ dataLoadingId: this.dataLoadingId }
{
dataLoadingId: this.dataLoadingId,
headers: { 'Cache-Control': 'no-cache'}
},
)
.then((response) => {
this.data = this.transform(response.data);
Expand Down
4 changes: 2 additions & 2 deletions resources/js/tasks/components/TasksList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
>
<td
v-for="(header, colIndex) in visibleHeaders"
:class="{ 'pm-table-filter-applied-tbody': header.filterApplied }"
:class="{ 'pm-table-filter-applied-tbody': header.sortAsc || header.sortDesc }"
:key="colIndex"
>
<template v-if="containsHTML(getNestedPropertyValue(row, header))">
Expand Down Expand Up @@ -477,7 +477,7 @@ export default {
},
formatCaseTitle(processRequest, record) {
let draftBadge = "";
if (record.draft) {
if (record.draft && record.status !== "CLOSED") {
draftBadge = `<span class="badge badge-warning status-warning">
${this.$t("Draft")}
</span>`;
Expand Down