Explorar el Código

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

Kristian Vos hace 2 años
padre
commit
6692c0d5de
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  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