refactor: improve ui consistency
This commit is contained in:
@@ -29,6 +29,17 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
<ButtonSecondary
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
svg="file-plus"
|
||||||
|
:title="$t('request.new')"
|
||||||
|
class="hidden group-hover:inline-flex"
|
||||||
|
@click.native="
|
||||||
|
$emit('add-request', {
|
||||||
|
path: `${collectionIndex}`,
|
||||||
|
})
|
||||||
|
"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
svg="folder-plus"
|
svg="folder-plus"
|
||||||
@@ -69,7 +80,7 @@
|
|||||||
>
|
>
|
||||||
<SmartItem
|
<SmartItem
|
||||||
ref="requestAction"
|
ref="requestAction"
|
||||||
svg="plus"
|
svg="file-plus"
|
||||||
:label="`${$t('request.new')}`"
|
:label="`${$t('request.new')}`"
|
||||||
:shortcut="['R']"
|
:shortcut="['R']"
|
||||||
@click.native="
|
@click.native="
|
||||||
|
|||||||
@@ -29,6 +29,13 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
<ButtonSecondary
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
svg="file-plus"
|
||||||
|
:title="$t('request.new')"
|
||||||
|
class="hidden group-hover:inline-flex"
|
||||||
|
@click.native="$emit('add-request', { path: folderPath })"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
svg="folder-plus"
|
svg="folder-plus"
|
||||||
@@ -65,7 +72,7 @@
|
|||||||
>
|
>
|
||||||
<SmartItem
|
<SmartItem
|
||||||
ref="requestAction"
|
ref="requestAction"
|
||||||
svg="plus"
|
svg="file-plus"
|
||||||
:label="`${$t('request.new')}`"
|
:label="`${$t('request.new')}`"
|
||||||
:shortcut="['R']"
|
:shortcut="['R']"
|
||||||
@click.native="
|
@click.native="
|
||||||
|
|||||||
@@ -45,6 +45,18 @@
|
|||||||
color="green"
|
color="green"
|
||||||
@click.native="$emit('unselect-collection')"
|
@click.native="$emit('unselect-collection')"
|
||||||
/>
|
/>
|
||||||
|
<ButtonSecondary
|
||||||
|
v-if="!doc"
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
svg="file-plus"
|
||||||
|
:title="$t('request.new')"
|
||||||
|
class="hidden group-hover:inline-flex"
|
||||||
|
@click.native="
|
||||||
|
$emit('add-request', {
|
||||||
|
path: `${collectionIndex}`,
|
||||||
|
})
|
||||||
|
"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-if="!doc"
|
v-if="!doc"
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
@@ -88,7 +100,7 @@
|
|||||||
>
|
>
|
||||||
<SmartItem
|
<SmartItem
|
||||||
ref="requestAction"
|
ref="requestAction"
|
||||||
svg="plus"
|
svg="file-plus"
|
||||||
:label="$t('request.new')"
|
:label="$t('request.new')"
|
||||||
:shortcut="['R']"
|
:shortcut="['R']"
|
||||||
@click.native="
|
@click.native="
|
||||||
|
|||||||
@@ -29,6 +29,13 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
<ButtonSecondary
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
svg="file-plus"
|
||||||
|
:title="t('request.new')"
|
||||||
|
class="hidden group-hover:inline-flex"
|
||||||
|
@click.native="$emit('add-request', { path: folderPath })"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
svg="folder-plus"
|
svg="folder-plus"
|
||||||
@@ -66,7 +73,7 @@
|
|||||||
>
|
>
|
||||||
<SmartItem
|
<SmartItem
|
||||||
ref="requestAction"
|
ref="requestAction"
|
||||||
svg="plus"
|
svg="file-plus"
|
||||||
:label="$t('request.new')"
|
:label="$t('request.new')"
|
||||||
:shortcut="['R']"
|
:shortcut="['R']"
|
||||||
@click.native="
|
@click.native="
|
||||||
|
|||||||
@@ -45,6 +45,19 @@
|
|||||||
color="green"
|
color="green"
|
||||||
@click.native="$emit('unselect-collection')"
|
@click.native="$emit('unselect-collection')"
|
||||||
/>
|
/>
|
||||||
|
<ButtonSecondary
|
||||||
|
v-if="collectionsType.selectedTeam.myRole !== 'VIEWER'"
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
svg="file-plus"
|
||||||
|
:title="$t('request.new')"
|
||||||
|
class="hidden group-hover:inline-flex"
|
||||||
|
@click.native="
|
||||||
|
$emit('add-request', {
|
||||||
|
folder: collection,
|
||||||
|
path: `${collectionIndex}`,
|
||||||
|
})
|
||||||
|
"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-if="collectionsType.selectedTeam.myRole !== 'VIEWER'"
|
v-if="collectionsType.selectedTeam.myRole !== 'VIEWER'"
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
@@ -89,7 +102,7 @@
|
|||||||
>
|
>
|
||||||
<SmartItem
|
<SmartItem
|
||||||
ref="requestAction"
|
ref="requestAction"
|
||||||
svg="plus"
|
svg="file-plus"
|
||||||
:label="t('request.new')"
|
:label="t('request.new')"
|
||||||
:shortcut="['R']"
|
:shortcut="['R']"
|
||||||
@click.native="
|
@click.native="
|
||||||
|
|||||||
@@ -29,6 +29,14 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
<ButtonSecondary
|
||||||
|
v-if="collectionsType.selectedTeam.myRole !== 'VIEWER'"
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
svg="file-plus"
|
||||||
|
:title="$t('request.new')"
|
||||||
|
class="hidden group-hover:inline-flex"
|
||||||
|
@click.native="$emit('add-request', { folder, path: folderPath })"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-if="collectionsType.selectedTeam.myRole !== 'VIEWER'"
|
v-if="collectionsType.selectedTeam.myRole !== 'VIEWER'"
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
@@ -68,7 +76,7 @@
|
|||||||
>
|
>
|
||||||
<SmartItem
|
<SmartItem
|
||||||
ref="requestAction"
|
ref="requestAction"
|
||||||
svg="plus"
|
svg="file-plus"
|
||||||
:label="$t('request.new')"
|
:label="$t('request.new')"
|
||||||
:shortcut="['R']"
|
:shortcut="['R']"
|
||||||
@click.native="
|
@click.native="
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
open
|
open
|
||||||
>
|
>
|
||||||
<summary
|
<summary
|
||||||
class="flex items-center justify-between flex-1 min-w-0 transition cursor-pointer focus:outline-none text-secondaryLight text-tiny group"
|
class="flex items-center justify-between flex-1 min-w-0 cursor-pointer transition focus:outline-none text-secondaryLight text-tiny group"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="px-4 py-2 truncate transition group-hover:text-secondary capitalize-first"
|
class="px-4 py-2 truncate transition group-hover:text-secondary capitalize-first"
|
||||||
|
|||||||
Reference in New Issue
Block a user