From 3a318dc373dba930573d542f4910772bf6fdc502 Mon Sep 17 00:00:00 2001 From: taehoon Date: Wed, 3 Apr 2019 23:35:43 -0400 Subject: [PATCH] add some styling to the selectable-list component --- .../selectable_list/selectable_list.js | 4 ++-- .../selectable_list/selectable_list.vue | 22 +++++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/components/selectable_list/selectable_list.js b/src/components/selectable_list/selectable_list.js index 5c01bbab..7a724144 100644 --- a/src/components/selectable_list/selectable_list.js +++ b/src/components/selectable_list/selectable_list.js @@ -21,7 +21,7 @@ const SelectableList = { }, methods: { toggle (checked, item) { - const oldChecked = this.isChecked(item) + const oldChecked = this.isSelected(item) if (checked !== oldChecked) { const key = this.getKey(item) if (checked) { @@ -31,7 +31,7 @@ const SelectableList = { } } }, - isChecked (item) { + isSelected (item) { return this.selected.indexOf(this.getKey(item)) !== -1 } } diff --git a/src/components/selectable_list/selectable_list.vue b/src/components/selectable_list/selectable_list.vue index f0ab33dd..7a7a7644 100644 --- a/src/components/selectable_list/selectable_list.vue +++ b/src/components/selectable_list/selectable_list.vue @@ -1,7 +1,9 @@