refactor: improve ui consistency

This commit is contained in:
liyasthomas
2022-04-14 19:00:04 +05:30
parent f7ca3f8bd1
commit 9232aad184
7 changed files with 65 additions and 7 deletions

View File

@@ -45,6 +45,19 @@
color="green"
@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
v-if="collectionsType.selectedTeam.myRole !== 'VIEWER'"
v-tippy="{ theme: 'tooltip' }"
@@ -89,7 +102,7 @@
>
<SmartItem
ref="requestAction"
svg="plus"
svg="file-plus"
:label="t('request.new')"
:shortcut="['R']"
@click.native="

View File

@@ -29,6 +29,14 @@
</span>
</span>
<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
v-if="collectionsType.selectedTeam.myRole !== 'VIEWER'"
v-tippy="{ theme: 'tooltip' }"
@@ -68,7 +76,7 @@
>
<SmartItem
ref="requestAction"
svg="plus"
svg="file-plus"
:label="$t('request.new')"
:shortcut="['R']"
@click.native="