Skip to content

Commit

Permalink
chore: make app buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed Apr 29, 2022
1 parent 16ba83f commit 2fd5ba1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion resources/assets/js/components/album/AlbumTrackList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ul class="tracks">
<li
is="vue:TrackListItem"
v-for="(track, index) in album.info.tracks"
v-for="(track, index) in album.info?.tracks"
:key="index"
:album="album"
:track="track"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
v-for="input in availableInputs"
:key="input.id"
v-model="input.value"
:type="selectedOperator.type || selectedModel?.type"
:type="selectedOperator?.type || selectedModel?.type"
:value="input.value"
@update:modelValue="onInput"
/>
Expand Down
14 changes: 7 additions & 7 deletions resources/assets/js/components/screens/PlaylistScreen.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<section id="playlistWrapper" v-if="playlist">
<ScreenHeader>
{{ playlist.name }}
<ControlsToggler v-if="playlist.populated" :showing-controls="showingControls" @toggleControls="toggleControls"/>
{{ playlist?.name }}
<ControlsToggler v-if="playlist?.populated" :showing-controls="showingControls" @toggleControls="toggleControls"/>

<template v-slot:meta>
<span class="meta" v-if="songs.length">
Expand All @@ -18,18 +18,18 @@

<template v-slot:controls>
<SongListControls
v-if="playlist.populated && (!isPhone || showingControls)"
v-if="playlist?.populated && (!isPhone || showingControls)"
@playAll="playAll"
@playSelected="playSelected"
@deletePlaylist="destroy"
:songs="playlist.songs"
:songs="playlist?.songs"
:config="songListControlConfig"
:selectedSongs="selectedSongs"
/>
</template>
</ScreenHeader>

<template v-if="playlist.populated">
<template v-if="playlist?.populated">
<SongList
v-if="songs.length"
ref="songList"
Expand All @@ -44,7 +44,7 @@
<i class="fa fa-file-o"></i>
</template>

<template v-if="playlist.is_smart">
<template v-if="playlist?.is_smart">
No songs match the playlist's
<a @click.prevent="editSmartPlaylist">criteria</a>.
</template>
Expand All @@ -61,12 +61,12 @@
</template>

<script lang="ts" setup>
import { difference } from 'lodash'
import { defineAsyncComponent, nextTick, ref, toRef } from 'vue'
import { alerts, eventBus, pluralize } from '@/utils'
import { playlistStore, commonStore } from '@/stores'
import { downloadService } from '@/services'
import { useSongList } from '@/composables'
import { difference } from 'lodash'
const ScreenHeader = defineAsyncComponent(() => import('@/components/ui/ScreenHeader.vue'))
const ScreenEmptyState = defineAsyncComponent(() => import('@/components/ui/ScreenEmptyState.vue'))
Expand Down

0 comments on commit 2fd5ba1

Please sign in to comment.