Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
fix: menu if no media scene
Browse files Browse the repository at this point in the history
  • Loading branch information
sircharlo committed Jun 12, 2024
1 parent 8fe9069 commit 7ec04b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/media/ScenePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
class="non-selectable"
>
<q-list style="min-width: 100px">
<template v-if="mediaScene">
<q-item-label header>Media scene</q-item-label>
<q-item
:active="currentSceneUuid === mediaScene.sceneUuid"
Expand All @@ -23,7 +24,8 @@
</q-item-section>
<q-item-section>{{ mediaScene.sceneName }}</q-item-section>
</q-item>
<q-item-label header>Other scenes</q-item-label>
<q-item-label header>Other scenes</q-item-label>
</template>
<template
:key="scene.sceneUuid"
v-for="[i, scene] in Object.entries(nonMediaScenes)"
Expand Down
5 changes: 3 additions & 2 deletions src/pages/MediaCalendarPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
</div>
</q-item-section>
</q-item>
<q-item v-if="media.markers && media.markers.length > 0">
<!-- <q-item v-if="media.markers && media.markers.length > 0">
<q-markup-table>
<q-tr>
<q-th>Start</q-th>
Expand All @@ -392,7 +392,7 @@
<q-td>{{ marker.Label }}</q-td>
</q-tr>
</q-markup-table>
</q-item>
</q-item> -->
<transition
appear
enter-active-class="animated fadeIn"
Expand Down Expand Up @@ -1054,6 +1054,7 @@ const resetMediaDuration = (media: DynamicMediaObject) => {
};
const imageLoadingError = (media: DynamicMediaObject) => {
console.error('imageLoadingError', media);
const thumbnailUrl = media.thumbnailUrl;
media.thumbnailUrl = '';
media.thumbnailUrl = thumbnailUrl ?? getThumbnailUrl(media.fileUrl);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/MediaPlayerPage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
{{ mediaPlayer }}
<!-- {{ mediaPlayer }} -->
<q-page-container
class="q-electron-drag vertical-middle overflow-hidden"
padding
Expand Down

0 comments on commit 7ec04b9

Please sign in to comment.