diff --git a/resources/js/processes/components/ProcessMixin.js b/resources/js/processes/components/ProcessMixin.js index 249e20a538..33b8eb507e 100644 --- a/resources/js/processes/components/ProcessMixin.js +++ b/resources/js/processes/components/ProcessMixin.js @@ -43,7 +43,7 @@ export default { // change method sort by user this.orderBy = this.orderBy === "user" ? "user.firstname" : this.orderBy; // change method sort by slot name - this.orderBy = this.orderBy === "__slot:name" ? "name" : this.orderBy; + this.orderBy = this.orderBy === "__slot:updated_at" ? "updated_at" : this.orderBy; const url = this.status === null || this.status === "" || this.status === undefined ? "processes?" diff --git a/resources/js/processes/components/ProcessesListing.vue b/resources/js/processes/components/ProcessesListing.vue index 4cf693631c..3b06a08c42 100644 --- a/resources/js/processes/components/ProcessesListing.vue +++ b/resources/js/processes/components/ProcessesListing.vue @@ -192,7 +192,8 @@ export default { props: ["filter", "id", "status", "permission", "isDocumenterInstalled", "pmql", "processName", "currentUserId"], data() { return { - orderBy: "name", + orderBy: "updated_at", + orderDirection: "desc", processId: null, processTemplateName: "", pmBlockName: "", @@ -202,9 +203,9 @@ export default { previousPmql: "", sortOrder: [ { - field: "name", - sortField: "name", - direction: "asc", + field: "updated_at", + sortField: "updated_at", + direction: "desc", }, ], @@ -239,7 +240,7 @@ export default { format: "datetime", width: 160, sortable: true, - direction: "none", + direction: "desc", }, { label: this.$t("Created"), diff --git a/resources/js/processes/screens/components/ScreenListing.vue b/resources/js/processes/screens/components/ScreenListing.vue index 18fea94804..9930a13f74 100644 --- a/resources/js/processes/screens/components/ScreenListing.vue +++ b/resources/js/processes/screens/components/ScreenListing.vue @@ -168,7 +168,8 @@ export default { props: ["filter", "id", "permission", "currentUserId", "types"], data() { return { - orderBy: "title", + orderBy: "updated_at", + orderDirection: "desc", screenId: null, assetName: " ", assignedProjects: [], @@ -176,10 +177,10 @@ export default { screenType: "", sortOrder: [ { - field: "title", - sortField: "title", - direction: "asc" - } + field: "updated_at", + sortField: "updated_at", + direction: "desc", + }, ], fields: [ @@ -233,7 +234,7 @@ export default { label: this.$t("Modified"), field: "updated_at", sortable: true, - direction: "none", + direction: "desc", format: "datetime", width: 140, sortField: "updated_at", @@ -300,7 +301,7 @@ export default { fetch() { this.loading = true; //change method sort by slot name - this.orderBy = this.orderBy === "__slot:title" ? "title" : this.orderBy; + this.orderBy = this.orderBy === "__slot:updated_at" ? "updated_at" : this.orderBy; // Load from our api client ProcessMaker.apiClient .get( diff --git a/resources/js/processes/scripts/components/ScriptListing.vue b/resources/js/processes/scripts/components/ScriptListing.vue index 27d2f8f171..e8e9b4b894 100644 --- a/resources/js/processes/scripts/components/ScriptListing.vue +++ b/resources/js/processes/scripts/components/ScriptListing.vue @@ -149,14 +149,14 @@ export default { return { assetId: null, assetName: "", - orderBy: "title", - + orderBy: "updated_at", + orderDirection: "desc", sortOrder: [ { - field: "title", - sortField: "title", - direction: "asc" - } + field: "updated_at", + sortField: "updated_at", + direction: "desc", + }, ], fields: [ @@ -211,7 +211,7 @@ export default { label: this.$t("Modified"), field: "updated_at", sortable: true, - direction: "none", + direction: "desc", format: "datetime", width: 140, callback: "formatDate",