Skip to content

Commit

Permalink
#109: corrected setter to send array.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mulholland committed May 8, 2018
1 parent 7dfe639 commit 27779e8
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/renderer/partials/ColumnProperties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -414,23 +414,13 @@ export default {
setTrueValues: function(values) {
let withoutEmpties = this.removeStringEmpties(values)
let array = this.getNoDuplicatesArrayFromString(withoutEmpties)
this.setProperty('trueValues', values)
this.setProperty('trueValues', array)
},
setFalseValues: function(values) {
let withoutEmpties = this.removeStringEmpties(values)
let array = this.getNoDuplicatesArrayFromString(withoutEmpties)
this.setProperty('falseValues', values)
this.setProperty('falseValues', array)
},
// setTrueRawValues: function(values) {
// // let withoutEmpties = this.removeStringEmpties(values)
// // let array = this.getNoDuplicatesArrayFromString(withoutEmpties)
// this.setProperty('trueRawValues', values)
// },
// setFalseRawValues: function(values) {
// // let withoutEmpties = this.removeStringEmpties(values)
// // let array = this.getNoDuplicatesArrayFromString(withoutEmpties)
// this.setProperty('falseRawValues', values)
// },
getNoDuplicatesArrayFromString: function(values) {
return Array.from(new Set(values.split(',')))
},
Expand Down

0 comments on commit 27779e8

Please sign in to comment.