This commit is contained in:
@@ -208,7 +208,7 @@ export default {
|
||||
let columnView = {
|
||||
userId: vm.$store.state.userId,
|
||||
listKey: vm.dataListKey,
|
||||
columns: JSON.stringify(generateListViewFromEdited(vm)),
|
||||
columns: JSON.stringify(generateColumnViewFromEditView(vm)),
|
||||
sort: vm.obj.sort //not set here, just keep existing one that was fetched when opened this form
|
||||
};
|
||||
|
||||
@@ -402,11 +402,6 @@ async function fetchColumnView(vm) {
|
||||
////////////////////
|
||||
//
|
||||
function initWorkingView(vm) {
|
||||
// if (vm.effectiveListView == null) {
|
||||
// throw new Error(
|
||||
// "ay-data-list::initWorkingView - effectiveListView is not set"
|
||||
// );
|
||||
// }
|
||||
if (vm.fieldDefinitions == null) {
|
||||
throw new Error(
|
||||
"ay-data-list::initWorkingView - fieldDefinitions are not set"
|
||||
@@ -416,7 +411,7 @@ function initWorkingView(vm) {
|
||||
let ret = [];
|
||||
let columns = JSON.parse(vm.obj.columns);
|
||||
|
||||
//Pass 1, iterate the listview first
|
||||
//Pass 1, iterate the columns first
|
||||
for (let i = 0; i < columns.length; i++) {
|
||||
//de-lodash
|
||||
//let fld = window.$gz. _.find(vm.fieldDefinitions, ["fieldKey", lvItem.fld]);
|
||||
@@ -463,7 +458,7 @@ function initWorkingView(vm) {
|
||||
//
|
||||
// Convert editedList view to real list view and return
|
||||
//
|
||||
function generateListViewFromEdited(vm) {
|
||||
function generateColumnViewFromEditView(vm) {
|
||||
let ret = [];
|
||||
|
||||
for (let i = 0; i < vm.editView.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user