mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
feat: loading local songs, basic association
association used to load existing playlists with local files
This commit is contained in:
@@ -5,12 +5,21 @@ import {
|
||||
import type {
|
||||
CloudImport
|
||||
} from './importTypePicker';
|
||||
import type {
|
||||
Song
|
||||
} from '@/ts/dtype/playlist';
|
||||
|
||||
export const isShowingSearchView = ref( false );
|
||||
|
||||
export const searchOpts: Ref<CloudImport | null> = ref( null );
|
||||
|
||||
export const results: Ref<Song[]> = ref( [] );
|
||||
|
||||
export const query = ref( '' );
|
||||
|
||||
export const openSearchInterface = ( options: CloudImport ) => {
|
||||
searchOpts.value = options;
|
||||
isShowingSearchView.value = true;
|
||||
results.value = [];
|
||||
query.value = '';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user