Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: broken team's add / edit member action
liyasthomas87833f1e9f6d
diff --git a/components/teams/Edit.vue b/components/teams/Edit.vueindex ac6bf1b6f..16dc2805d 100644--- a/components/teams/Edit.vue+++ b/components/teams/Edit.vue@@ -51,7 +51,7 @@/><span class="select-wrapper"><tippy- ref="memberOptions"+ :ref="`memberOptions-${index}`"interactivetrigger="click"theme="popover"@@ -80,24 +80,15 @@</template><SmartItemlabel="OWNER"- @click.native="- $refs.memberOptions.tippy().hide()- updateMemberRole(index, 'OWNER')- "+ @click.native="updateMemberRole(index, 'OWNER')"/><SmartItemlabel="EDITOR"- @click.native="- $refs.memberOptions.tippy().hide()- updateMemberRole(index, 'EDITOR')- "+ @click.native="updateMemberRole(index, 'EDITOR')"/><SmartItemlabel="VIEWER"- @click.native="- $refs.memberOptions.tippy().hide()- updateMemberRole(index, 'VIEWER')- "+ @click.native="updateMemberRole(index, 'VIEWER')"/></tippy></span>@@ -136,7 +127,7 @@/><span class="select-wrapper"><tippy- ref="newMemberOptions"+ :ref="`newMemberOptions-${index}`"interactivetrigger="click"theme="popover"@@ -165,24 +156,15 @@</template><SmartItemlabel="OWNER"- @click.native="- $refs.newMemberOptions.tippy().hide()- updateNewMemberRole(index, 'OWNER')- "+ @click.native="updateNewMemberRole(index, 'OWNER')"/><SmartItemlabel="EDITOR"- @click.native="- $refs.newMemberOptions.tippy().hide()- updateNewMemberRole(index, 'EDITOR')- "+ @click.native="updateNewMemberRole(index, 'EDITOR')"/><SmartItemlabel="VIEWER"- @click.native="- $refs.newMemberOptions.tippy().hide()- updateNewMemberRole(index, 'VIEWER')- "+ @click.native="updateNewMemberRole(index, 'VIEWER')"/></tippy></span>@@ -253,9 +235,11 @@ export default defineComponent({methods: {updateMemberRole(id, role) {this.members[id].role = role+ this.$refs[`memberOptions-${id}`][0].tippy().hide()},updateNewMemberRole(id, role) {this.newMembers[id].value = role+ this.$refs[`newMemberOptions-${id}`][0].tippy().hide()},addTeamMember() {const member = { key: "", value: "" }