Skip to content

Commit

Permalink
ready for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
CarliPinell committed Sep 27, 2024
1 parent 78bcc41 commit 2577465
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
7 changes: 0 additions & 7 deletions src/components/inspector/collection-data-source.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@
v-model="quantityRecords"
/>
</div>

<label class="mt-3">{{ $t("Variable to store selection") }}</label>
<b-input
id="variable-store-selection"
v-model="variableStore"
placeholder="Variable Name"/>

</div>
</div>
</template>
Expand Down
20 changes: 7 additions & 13 deletions src/components/renderer/form-record-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,7 @@ export default {
currentRowIndex: null,
collectionData: {},
selectedRow: null,
selectedRows: [],
output: {
fields: {
carBrand: "",
year: null
}
},
onlyObject: {}
selectedRows: []
};
},
computed: {
Expand Down Expand Up @@ -305,10 +298,14 @@ export default {
console.log("refs vuetable not exists");
},
tableData() {
const value = Object.keys(this.collectionData).length !== 0 ? this.collectionData : (this.value || []);
const value = Array.isArray(this.collectionData) && this.collectionData.length
? this.collectionData
: (Array.isArray(this.value) ? this.value : []);
const from = this.paginatorPage - 1;
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
this.lastPage = Math.ceil(value.length / this.perPage);
const data = {
total: value.length,
per_page: this.perPage,
Expand All @@ -321,10 +318,8 @@ export default {
data: value,
lastSortConfig: false
};
console.log("this.value: ", this.value);
console.log("this.collectionData: ", this.collectionData);
console.log("tableData: ", data);
return data;
},
// The fields used for our vue table
tableFields() {
Expand Down Expand Up @@ -395,7 +390,6 @@ export default {
onRadioChange(selectedItem) {
if(this.source?.singleField) {
const valueOfColumn = selectedItem[this.source.singleField];
console.log("valueOfColumn: ", valueOfColumn);
this.componentOutput(valueOfColumn);
} else {
this.componentOutput(selectedItem);
Expand Down

0 comments on commit 2577465

Please sign in to comment.