Skip to content

Commit 34cccd4

Browse files
committed
Don't dynamically calculate class
1 parent 5d39ef5 commit 34cccd4

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

photon-client/src/components/app/photon-sidebar.vue

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const renderCompact = computed<boolean>(() => compact.value || !mdAndUp.value);
2626
<v-navigation-drawer permanent :rail="renderCompact" color="sidebar">
2727
<v-list nav color="primary">
2828
<!-- List item for the heading; note that there are some tricks in setting padding and image width make things look right -->
29-
<v-list-item :class="renderCompact ? 'pr-0 pl-0' : ''" style="display: flex; justify-content: center">
29+
<v-list-item class="pr-0 pl-0" style="display: flex; justify-content: center">
3030
<template #prepend>
3131
<img v-if="!renderCompact" class="logo" src="@/assets/images/logoLarge.svg" alt="large logo" />
3232
<img v-else class="logo" src="@/assets/images/logoSmallTransparent.svg" alt="small logo" />
@@ -42,21 +42,11 @@ const renderCompact = computed<boolean>(() => compact.value || !mdAndUp.value);
4242
<v-list-item ref="camerasTabOpener" link to="/cameras" prepend-icon="mdi-camera">
4343
<v-list-item-title>Camera</v-list-item-title>
4444
</v-list-item>
45-
<v-list-item
46-
link
47-
to="/cameraConfigs"
48-
:class="{
49-
cameraicon: useCameraSettingsStore().needsCameraConfiguration && useRoute().path !== '/cameraConfigs'
50-
}"
51-
>
45+
<v-list-item link to="/cameraConfigs">
5246
<template #prepend>
53-
<v-icon :class="{ 'text-red': useCameraSettingsStore().needsCameraConfiguration }"
54-
>mdi-swap-horizontal-bold</v-icon
55-
>
47+
<v-icon>mdi-swap-horizontal-bold</v-icon>
5648
</template>
57-
<v-list-item-title :class="{ 'text-red': useCameraSettingsStore().needsCameraConfiguration }"
58-
>Camera Matching</v-list-item-title
59-
>
49+
<v-list-item-title>Camera Matching</v-list-item-title>
6050
</v-list-item>
6151
<v-list-item link to="/docs" prepend-icon="mdi-bookshelf">
6252
<v-list-item-title>Documentation</v-list-item-title>

0 commit comments

Comments
 (0)