@afeefa/vue-app 0.0.289 → 0.0.291
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.291
|
package/package.json
CHANGED
@@ -76,7 +76,24 @@ export default class ListColumnSelector extends Vue {
|
|
76
76
|
try {
|
77
77
|
const storageItem = localStorage.getItem(`column-config-${this.storageKey}`)
|
78
78
|
if (storageItem) {
|
79
|
-
|
79
|
+
const columns = {}
|
80
|
+
const jsonColumns = JSON.parse(storageItem)
|
81
|
+
|
82
|
+
// setzte alle stored columns, die auch in liste definiert sind
|
83
|
+
for (const key in jsonColumns) {
|
84
|
+
if (this.columns[key]) { // liste hat key
|
85
|
+
columns[key] = jsonColumns[key]
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
// setzte nun noch alle list columns, die nicht im store waren
|
90
|
+
for (const key in this.columns) {
|
91
|
+
if (!columns[key]) { // key noch nicht gesetzt
|
92
|
+
columns[key] = this.columns[key]
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
this.columns_ = columns
|
80
97
|
this.selectedColumns = Object.keys(this.columns_)
|
81
98
|
.filter(k => this.columns_[k].visible)
|
82
99
|
|
@@ -15,6 +15,7 @@ import {
|
|
15
15
|
mdiDotsHorizontal,
|
16
16
|
mdiDotsVertical,
|
17
17
|
mdiDownload,
|
18
|
+
mdiDrag,
|
18
19
|
mdiFilter,
|
19
20
|
mdiInformationOutline,
|
20
21
|
mdiLock,
|
@@ -72,7 +73,8 @@ export default new Vuetify({
|
|
72
73
|
addIcon: mdiPlusCircle,
|
73
74
|
filterIcon: mdiFilter,
|
74
75
|
infoIcon: mdiInformationOutline,
|
75
|
-
downloadIcon: mdiDownload
|
76
|
+
downloadIcon: mdiDownload,
|
77
|
+
dragIcon: mdiDrag
|
76
78
|
}
|
77
79
|
},
|
78
80
|
breakpoint: {
|