This commit is contained in:
Andrew Bastin
2021-05-29 22:43:05 -04:00
parent fe8bbc6cc8
commit 9ad22e2600
6 changed files with 44 additions and 22 deletions

View File

@@ -17,7 +17,6 @@
class="icon"
@click="!doc ? selectRequest() : {}"
>
<i v-if="isSelected" class="mx-3 text-green-400 material-icons"
>check_circle</i
>
@@ -88,20 +87,22 @@ export default Vue.extend({
},
computed: {
isSelected(): boolean {
return this.picked &&
return (
this.picked &&
this.picked.pickedType === "gql-my-request" &&
this.picked.folderPath === this.folderPath &&
this.picked.requestIndex === this.requestIndex
}
)
},
},
methods: {
pick() {
this.$emit('select', {
this.$emit("select", {
picked: {
pickedType: "gql-my-request",
folderPath: this.folderPath,
requestIndex: this.requestIndex
}
requestIndex: this.requestIndex,
},
})
},
selectRequest() {