mirror of https://github.com/apache/cloudstack.git
remember selected when switching page
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
10beb4097d
commit
8d3f7b9f1b
|
|
@ -100,14 +100,13 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
items (items) {
|
||||
this.checkedValue = ''
|
||||
const key = this.inputDecorator.slice(0, -2)
|
||||
for (const filter of this.filterOpts) {
|
||||
if (items[filter.id] && items[filter.id][key] && items[filter.id][key].length > 0) {
|
||||
if (!this.pagination) {
|
||||
this.filterType = filter.id
|
||||
this.checkedValue = items[filter.id][key][0].id
|
||||
}
|
||||
this.checkedValue = items[filter.id][key][0].id
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue