Skip to content

Commit

Permalink
fix(ui): response tag not working in Folder Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
flawiddsouza committed Dec 12, 2024
1 parent 54594e7 commit 39fead7
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions packages/ui/src/components/FolderPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<RequestPanelHeaders
:collection-item="collectionItemToEdit"
:collection-item-environment-resolved="envVariables"
@tagClick="onTagClick"

Check warning on line 11 in packages/ui/src/components/FolderPanel.vue

View workflow job for this annotation

GitHub Actions / test

v-on event '@tagClick' must be hyphenated
/>
</div>
<InfoTip />
Expand All @@ -22,19 +23,28 @@
:collection-item="collectionItemToEdit"
:collection-item-environment-resolved="envVariables"
:flags="flags"
@tagClick="onTagClick"

Check warning on line 26 in packages/ui/src/components/FolderPanel.vue

View workflow job for this annotation

GitHub Actions / test

v-on event '@tagClick' must be hyphenated
/>
</div>
<InfoTip />
</div>
</div>

<div style="padding-bottom: 1rem"></div>

<EditTagModal
v-if="editTagModalShow"
v-model:showModal="editTagModalShow"
:parsed-func="editTagParsedFunc"
:update-func="editTagUpdateFunc"
/>
</div>
</template>

<script>
import RequestPanelHeaders from '../../src/components/RequestPanelHeaders.vue'
import RequestPanelAuth from '../../src/components/RequestPanelAuth.vue'
import RequestPanelHeaders from '@/components/RequestPanelHeaders.vue'
import RequestPanelAuth from '@/components/RequestPanelAuth.vue'
import EditTagModal from '@/components/modals/EditTagModal.vue'
import { deepClone } from '@/helpers'
import { toRaw } from 'vue'
Expand All @@ -52,6 +62,7 @@ export default {
components: {
RequestPanelHeaders,
RequestPanelAuth,
EditTagModal,
InfoTip: {
template: `
<div style="margin-top: 0.5rem; color: var(--modal-tip-text-color); font-weight: normal; font-style: italic;">
Expand All @@ -64,6 +75,9 @@ export default {
return {
envVariables: {},
collectionItemToEdit: null,
editTagModalShow: false,
editTagParsedFunc: null,
editTagUpdateFunc: null,
}
},
computed: {
Expand Down Expand Up @@ -113,6 +127,11 @@ export default {
return
}
},
onTagClick(parsedFunc, updateFunc) {
this.editTagParsedFunc = parsedFunc
this.editTagUpdateFunc = updateFunc
this.editTagModalShow = true
},
}
}
</script>

0 comments on commit 39fead7

Please sign in to comment.