mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
26 lines
538 B
TypeScript
26 lines
538 B
TypeScript
import {
|
|
type Ref,
|
|
ref
|
|
} from 'vue';
|
|
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 = '';
|
|
};
|