Browse Source

fix(AdvancedTable): select wouldn't always be second column

Kristian Vos 2 years ago
parent
commit
6692c0d5de
1 changed files with 5 additions and 2 deletions
  1. 5 2
      frontend/src/components/AdvancedTable.vue

+ 5 - 2
frontend/src/components/AdvancedTable.vue

@@ -1048,9 +1048,12 @@ export default {
 		this.orderedColumns = columns.sort((columnA, columnB) => {
 			// Always places updatedPlaceholder column in the first position
 			if (columnA.name === "updatedPlaceholder") return -1;
-			// Always places select column in the first position
-			// if (columnA.name === "select") return -1;
+			if (columnB.name === "updatedPlaceholder") return 1;
+			// Always places select column in the second position
+			if (columnA.name === "select") return -1;
+			if (columnB.name === "select") return 1;
 			// Always places placeholder column in the last position
+			if (columnA.name === "placeholder") return 1;
 			if (columnB.name === "placeholder") return -1;
 
 			// If there are no table settings stored, use default ordering