aboutsummaryrefslogtreecommitdiff
path: root/src/components/selectable_list/selectable_list.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-04-03 23:35:43 -0400
committertaehoon <th.dev91@gmail.com>2019-04-17 11:32:48 -0400
commit3a318dc373dba930573d542f4910772bf6fdc502 (patch)
tree255412cdbb1a6ae1dd10aae0779786cf7f8c511a /src/components/selectable_list/selectable_list.js
parentf6e9f2874576f9496618d583de878fdc8487eaca (diff)
add some styling to the selectable-list component
Diffstat (limited to 'src/components/selectable_list/selectable_list.js')
-rw-r--r--src/components/selectable_list/selectable_list.js4
1 files changed, 2 insertions, 2 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
}
}