Browse Source

chore(AdvancedTable): Removed pinned column code

Owen Diffey 3 years ago
parent
commit
e8186988d4
2 changed files with 0 additions and 31 deletions
  1. 0 30
      frontend/src/components/AdvancedTable.vue
  2. 0 1
      frontend/src/pages/Admin/tabs/Test.vue

+ 0 - 30
frontend/src/components/AdvancedTable.vue

@@ -327,24 +327,6 @@
 										<span>
 											{{ column.displayName }}
 										</span>
-										<span
-											v-if="column.pinable"
-											content="Toggle Pinned Column"
-											v-tippy
-											@click="togglePinnedColumn(column)"
-										>
-											<span
-												:class="{
-													'material-icons': true,
-													active:
-														pinnedColumns.indexOf(
-															column.name
-														) !== -1
-												}"
-											>
-												push_pin
-											</span>
-										</span>
 										<span
 											v-if="column.sortable"
 											:content="`Sort by ${column.displayName}`"
@@ -592,7 +574,6 @@ export default {
 			sort: {},
 			orderedColumns: [],
 			shownColumns: [],
-			pinnedColumns: ["select"],
 			columnDragOptions() {
 				return {
 					animation: 200,
@@ -687,7 +668,6 @@ export default {
 				hidable: false,
 				draggable: false,
 				resizable: false,
-				pinable: false,
 				minWidth: 47,
 				width: 47,
 				maxWidth: 47
@@ -773,16 +753,6 @@ export default {
 			}
 			return this.getData();
 		},
-		togglePinnedColumn(column) {
-			if (this.pinnedColumns.indexOf(column.name) !== -1) {
-				this.pinnedColumns.splice(
-					this.pinnedColumns.indexOf(column.name),
-					1
-				);
-			} else {
-				this.pinnedColumns.push(column.name);
-			}
-		},
 		toggleSelectedRow(itemIndex, event) {
 			const { shiftKey, ctrlKey } = event;
 			// Shift was pressed, so attempt to select all items between the clicked item and last clicked item

+ 0 - 1
frontend/src/pages/Admin/tabs/Test.vue

@@ -160,7 +160,6 @@ export default {
 				defaultVisibility: "shown",
 				draggable: true,
 				resizable: true,
-				pinable: true,
 				minWidth: 200,
 				maxWidth: 600
 			},