Select multiple collections (#1604) (#1605)

This commit is contained in:
Liyas Thomas
2021-04-15 13:31:15 +05:30
committed by GitHub
parent 6878498b2e
commit 432884a2af
3 changed files with 32 additions and 4 deletions

View File

@@ -64,11 +64,13 @@
:collection="collection"
:doc="doc"
:isFiltered="filterText.length > 0"
:selected="selected.some((coll) => coll == collection)"
@edit-collection="editCollection(collection, index)"
@add-folder="addFolder($event)"
@edit-folder="editFolder($event)"
@edit-request="editRequest($event)"
@select-collection="$emit('use-collection', collection)"
@unselect-collection="$emit('remove-collection', collection)"
/>
</li>
</ul>
@@ -92,6 +94,7 @@ import { getSettingSubject } from "~/newstore/settings"
export default {
props: {
doc: Boolean,
selected: { type: Array, default: () => [] },
},
data() {
return {