feat: context menu for secondary actions in collection, environment and team components - #2005

This commit is contained in:
liyasthomas
2021-12-11 08:03:39 +05:30
parent fe13de2ea0
commit 75e34feabf
11 changed files with 26 additions and 5 deletions

View File

@@ -8,6 +8,7 @@
@drop="dragging = false"
@dragleave="dragging = false"
@dragend="dragging = false"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-4 items-center justify-center"

View File

@@ -8,6 +8,7 @@
@drop="dragging = false"
@dragleave="dragging = false"
@dragend="dragging = false"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-4 items-center justify-center"

View File

@@ -7,6 +7,7 @@
@dragover.stop
@dragleave="dragging = false"
@dragend="dragging = false"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-2 w-16 items-center justify-center truncate"

View File

@@ -8,6 +8,7 @@
@drop="dragging = false"
@dragleave="dragging = false"
@dragend="dragging = false"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-4 items-center justify-center"

View File

@@ -8,6 +8,7 @@
@drop="dragging = false"
@dragleave="dragging = false"
@dragend="dragging = false"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-4 items-center justify-center"

View File

@@ -7,6 +7,7 @@
@dragover.stop
@dragleave="dragging = false"
@dragend="dragging = false"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-2 w-16 items-center justify-center truncate"

View File

@@ -1,6 +1,9 @@
<template>
<div class="flex flex-col">
<div class="flex items-stretch group">
<div
class="flex items-stretch group"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-4 items-center justify-center"
@click="toggleShowChildren()"

View File

@@ -1,6 +1,9 @@
<template>
<div class="flex flex-col">
<div class="flex items-stretch group">
<div
class="flex items-stretch group"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-4 items-center justify-center"
@click="toggleShowChildren()"

View File

@@ -1,6 +1,9 @@
<template>
<div class="flex flex-col">
<div class="flex items-stretch group">
<div
class="flex items-stretch group"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-2 w-16 items-center justify-center truncate"
:class="getRequestLabelColor(request.method)"

View File

@@ -1,5 +1,8 @@
<template>
<div class="flex items-stretch group">
<div
class="flex items-stretch group"
@contextmenu.prevent="$refs.options.tippy().show()"
>
<span
class="cursor-pointer flex px-4 items-center justify-center"
@click="$emit('edit-environment')"

View File

@@ -1,5 +1,8 @@
<template>
<div class="border border-divider rounded flex flex-col flex-1">
<div
class="border border-divider rounded flex flex-col flex-1"
@contextmenu.prevent="!compact ? $refs.options.tippy().show() : null"
>
<div
class="flex flex-1 items-start"
:class="