Skip to content

Commit aa3dffb

Browse files
authored
Add missing interaction to trial tag (#366)
1 parent a3bcfc9 commit aa3dffb

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

frontend/src/assets/scss/badge.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,9 @@
4343

4444
&--light-yellow {
4545
@apply bg-yellow-50 text-yellow-600;
46+
47+
&:hover {
48+
@apply bg-yellow-100;
49+
}
4650
}
4751
}

frontend/src/modules/layout/components/workspace-dropdown.vue

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,21 @@
4444
</div>
4545
<div class="text-gray-500 text-2xs">
4646
{{ getPlan(currentTenant.plan) }}
47-
<span
48-
v-if="getTrialDate(currentTenant)"
49-
class="badge badge--xs badge--light-yellow ml-1"
50-
>{{
51-
getTrialDate(currentTenant)
52-
}}</span
47+
<router-link
48+
:to="{
49+
name: 'settings',
50+
query: { activeTab: 'plans' }
51+
}"
52+
@click.stop
5353
>
54+
<span
55+
v-if="getTrialDate(currentTenant)"
56+
class="badge badge--xs badge--light-yellow ml-1 hover:cursor-pointer"
57+
>{{
58+
getTrialDate(currentTenant)
59+
}}</span
60+
>
61+
</router-link>
5462
</div>
5563
</div>
5664
</div>
@@ -129,7 +137,7 @@ export default {
129137
<script setup>
130138
import { useStore } from 'vuex'
131139
import { computed, onMounted, ref, watch } from 'vue'
132-
import AppTenantListDrawer from '@/modules/tenant/components/tenant-list-drawer'
140+
import AppTenantListDrawer from '@/modules/tenant/components/tenant-list-drawer.vue'
133141
import config from '@/config'
134142
import { getTrialDate } from '@/utils/date'
135143

0 commit comments

Comments
 (0)