Linting
This commit is contained in:
@@ -196,7 +196,7 @@ export default {
|
||||
mode: "import_export",
|
||||
mySelectedCollectionID: undefined,
|
||||
collectionJson: "",
|
||||
fb
|
||||
fb,
|
||||
}
|
||||
},
|
||||
subscriptions() {
|
||||
|
||||
@@ -58,7 +58,12 @@
|
||||
<script>
|
||||
import { getSettingSubject } from "~/newstore/settings"
|
||||
import * as teamUtils from "~/helpers/teams/utils"
|
||||
import { saveRESTRequestAs, editRESTRequest, editGraphqlRequest, saveGraphqlRequestAs } from "~/newstore/collections"
|
||||
import {
|
||||
saveRESTRequestAs,
|
||||
editRESTRequest,
|
||||
editGraphqlRequest,
|
||||
saveGraphqlRequestAs,
|
||||
} from "~/newstore/collections"
|
||||
|
||||
export default {
|
||||
props: {
|
||||
@@ -204,7 +209,11 @@ export default {
|
||||
this.picked.collectionID
|
||||
)
|
||||
} else if (this.picked.pickedType === "gql-my-request") {
|
||||
editGraphqlRequest(this.picked.folderPath, this.picked.requestIndex, requestUpdated)
|
||||
editGraphqlRequest(
|
||||
this.picked.folderPath,
|
||||
this.picked.requestIndex,
|
||||
requestUpdated
|
||||
)
|
||||
} else if (this.picked.pickedType === "gql-my-folder") {
|
||||
saveGraphqlRequestAs(this.picked.folderPath, requestUpdated)
|
||||
} else if (this.picked.pickedType === "gql-my-collection") {
|
||||
|
||||
@@ -170,18 +170,20 @@ export default Vue.extend({
|
||||
},
|
||||
computed: {
|
||||
isSelected(): boolean {
|
||||
return this.picked &&
|
||||
return (
|
||||
this.picked &&
|
||||
this.picked.pickedType === "gql-my-collection" &&
|
||||
this.picked.collectionIndex === this.collectionIndex
|
||||
}
|
||||
)
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
pick() {
|
||||
this.$emit("select", {
|
||||
picked: {
|
||||
pickedType: "gql-my-collection",
|
||||
collectionIndex: this.collectionIndex
|
||||
}
|
||||
collectionIndex: this.collectionIndex,
|
||||
},
|
||||
})
|
||||
},
|
||||
toggleShowChildren() {
|
||||
|
||||
@@ -156,18 +156,20 @@ export default Vue.extend({
|
||||
},
|
||||
computed: {
|
||||
isSelected(): boolean {
|
||||
return this.picked &&
|
||||
this.picked.pickedType === "gql-my-folder" &&
|
||||
return (
|
||||
this.picked &&
|
||||
this.picked.pickedType === "gql-my-folder" &&
|
||||
this.picked.folderPath === this.folderPath
|
||||
}
|
||||
)
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
pick() {
|
||||
this.$emit('select', {
|
||||
this.$emit("select", {
|
||||
picked: {
|
||||
pickedType: "gql-my-folder",
|
||||
folderPath: this.folderPath
|
||||
}
|
||||
folderPath: this.folderPath,
|
||||
},
|
||||
})
|
||||
},
|
||||
toggleShowChildren() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -50,11 +50,19 @@
|
||||
@hide-modal="displayModalImportExport(false)"
|
||||
/>
|
||||
<div class="border-b row-wrapper border-brdColor">
|
||||
<button v-if="showCollActions" class="icon" @click="displayModalAdd(true)">
|
||||
<button
|
||||
v-if="showCollActions"
|
||||
class="icon"
|
||||
@click="displayModalAdd(true)"
|
||||
>
|
||||
<i class="material-icons">add</i>
|
||||
<span>{{ $t("new") }}</span>
|
||||
</button>
|
||||
<button v-if="showCollActions" class="icon" @click="displayModalImportExport(true)">
|
||||
<button
|
||||
v-if="showCollActions"
|
||||
class="icon"
|
||||
@click="displayModalImportExport(true)"
|
||||
>
|
||||
{{ $t("import_export") }}
|
||||
</button>
|
||||
</div>
|
||||
@@ -104,7 +112,7 @@ export default {
|
||||
doc: { type: Boolean, default: false },
|
||||
picked: { type: Object, default: null },
|
||||
// Whether to show the 'New' and 'Import/Export' actions
|
||||
showCollActions: { type: Boolean, default: true }
|
||||
showCollActions: { type: Boolean, default: true },
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user