Skip to content

Commit

Permalink
feat(apps): dim vue version
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 20, 2023
1 parent 43eb6b0 commit 049abd8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/app-frontend/src/features/apps/AppSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default defineComponent({
<template #default="{ item }">
<AppSelectItem
:app="item"
:selected="currentApp === item"
/>
</template>

Expand Down
12 changes: 11 additions & 1 deletion packages/app-frontend/src/features/apps/AppSelectItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default defineComponent({
type: Object,
required: true,
},
selected: {
type: Boolean,
default: false,
},
},
setup (props) {
Expand All @@ -27,7 +32,12 @@ export default defineComponent({
<div class="leading-tight">
<div class="app-button flex items-center">
<span class="truncate flex-1">{{ app.name }}</span>
<span class="flex-none flex items-center">
<span
class="flex-none flex items-center"
:class="{
'opacity-40': !selected,
}"
>
<img
src="~@front/assets/vue-logo.svg"
class="w-6 h-6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ export default defineComponent({
>
<div class="flex items-center">
<span class="truncate flex-1">{{ app.name }}</span>
<span class="flex-none flex items-center">
<span
class="flex-none flex items-center"
:class="{
'opacity-40': !selected,
}"
>
<img
src="~@front/assets/vue-logo.svg"
class="w-6 h-6"
Expand Down

0 comments on commit 049abd8

Please sign in to comment.