Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Jul 10, 2018
2 parents 796c2f3 + b7f1efa commit b7ab455
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions pages/admin/project/_short_name/filters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<label>{{ tag.name | capitalize }}</label>
<multiselect
:id="tag.name"
v-model="selections[tag.name]"
v-model="project.info.filters[tag.name]"
:options="options[tag.name] || []"
:taggable="true"
@tag="addFilter">
Expand Down Expand Up @@ -62,7 +62,6 @@ export default {
title: 'Project Filters',
description: 'Set the filters used to help locate the project',
processing: false,
selections: {},
options: {}
}
},
Expand Down Expand Up @@ -122,19 +121,11 @@ export default {
} else {
this.options[name] = [value]
}
if (Array.isArray(this.selections[name])) {
this.selections[name] = value
} else {
this.selections[name] = value
}
this.project.info.filters[name] = value
}
},
mounted () {
// Populate with the project's current filters
this.selections = this.project.info.filters
// Get all current filters for the collection.
const catShortName = this.currentCollection.short_name
const endpoint = `/lc/categories/${catShortName}/project-filters`
Expand Down

0 comments on commit b7ab455

Please sign in to comment.