Skip to content

Commit

Permalink
2022.7.0b10
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jul 22, 2022
1 parent 7f149b3 commit 43d95c6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<template>
<v-dialog :model-value="modelValue" transition="dialog-bottom-transition" fullscreen>
<v-dialog
:model-value="modelValue"
transition="dialog-bottom-transition"
fullscreen
>
<v-card>
<v-toolbar density="compact" dark color="primary">
<v-icon :icon="mdiPlayCircleOutline"></v-icon>
Expand Down Expand Up @@ -42,7 +46,9 @@
<v-list-item-avatar style="padding-right: 10px">
<v-icon :icon="item.icon"></v-icon>
</v-list-item-avatar>
<v-list-item-title>{{ $t(item.label, item.labelArgs) }}</v-list-item-title>
<v-list-item-title>{{
$t(item.label, item.labelArgs)
}}</v-list-item-title>
</v-list-item>
<v-divider></v-divider>
</div>
Expand Down Expand Up @@ -85,7 +91,9 @@
<div v-for="prov of api.providers" :key="prov.id">
<div
v-if="
prov.supported_features.includes(MusicProviderFeature.PLAYLIST_CREATE)
prov.supported_features.includes(
MusicProviderFeature.PLAYLIST_CREATE
)
"
>
<v-list-item ripple>
Expand Down Expand Up @@ -237,7 +245,7 @@ const addToPlaylist = function (value: MediaItemType) {
};
const newPlaylist = async function (provId: string) {
const newPlaylist = await api.createPlaylist(newPlaylistName.value, provId);
addToPlaylist(newPlaylist)
addToPlaylist(newPlaylist);
};
const itemClicked = async function (item: ContextMenuItem) {
Expand Down Expand Up @@ -320,14 +328,21 @@ export const getPlayMenuItems = function (items: MediaItem[]) {
return playMenuItems;
};
export const getContextMenuItems = function (items: MediaItem[], parentItem?: MediaItem) {
export const getContextMenuItems = function (
items: MediaItem[],
parentItem?: MediaItem
) {
const contextMenuItems: ContextMenuItem[] = [];
if (items.length == 0) {
return contextMenuItems;
}
// show info
if (items.length === 1 && items[0] !== parentItem && itemIsAvailable(items[0])) {
if (
items.length === 1 &&
items[0] !== parentItem &&
itemIsAvailable(items[0])
) {
contextMenuItems.push({
label: "show_info",
labelArgs: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:max-width="size * 1.5"
hover
border
@click.right.prevent="emit('select', item, !isSelected)"
@click.right.prevent="emit('menu', item)"
>
<MediaItemThumb
:item="item"
Expand Down
4 changes: 2 additions & 2 deletions custom_components/mass/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"domain": "mass",
"name": "Music Assistant",
"version": "2022.7.0b9",
"version": "2022.7.0b10",
"documentation": "https://github.com/music-assistant/hass-music-assistant",
"issue_tracker": "https://github.com/music-assistant/hass-music-assistant/issues",
"requirements": [
"music-assistant==1.6.8"
"music-assistant==1.6.9"
],
"codeowners": [
"@marcelveldt"
Expand Down

0 comments on commit 43d95c6

Please sign in to comment.