style: auto-fix linting issues
This commit is contained in:
parent
49592e38a3
commit
ce79d6d4c6
2 changed files with 10 additions and 3 deletions
|
|
@ -785,7 +785,14 @@ export async function handleTrackAction(
|
|||
if (!item) return;
|
||||
|
||||
// Actions not allowed for unavailable tracks
|
||||
const forbiddenForUnavailable = ['add-to-queue', 'play-next', 'track-mix', 'download', 'start-radio', 'start-infinite-radio'];
|
||||
const forbiddenForUnavailable = [
|
||||
'add-to-queue',
|
||||
'play-next',
|
||||
'track-mix',
|
||||
'download',
|
||||
'start-radio',
|
||||
'start-infinite-radio',
|
||||
];
|
||||
if (item.isUnavailable && forbiddenForUnavailable.includes(action)) {
|
||||
showNotification('This track is unavailable.');
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue