itube-specs 0.0.338 → 0.0.339
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,9 @@ import { EAuthSteps } from '../runtime';
|
|
|
5
5
|
|
|
6
6
|
const videoCard = ref<IVideoCard | IVideoData | null>(null);
|
|
7
7
|
const isPlaylistAdd = ref(false);
|
|
8
|
+
const selectValue = ref('' as string | string[] | undefined);
|
|
9
|
+
const step = ref('add' as 'add' | 'new');
|
|
10
|
+
|
|
8
11
|
const { openAuthPopup } = useAuthPopup();
|
|
9
12
|
|
|
10
13
|
const openPlaylistAdd = (isAuthorized: Ref<boolean>, card: IVideoCard | IVideoData) => {
|
|
@@ -20,6 +23,7 @@ const openPlaylistAdd = (isAuthorized: Ref<boolean>, card: IVideoCard | IVideoDa
|
|
|
20
23
|
const closePlaylistAdd = () => {
|
|
21
24
|
videoCard.value = null;
|
|
22
25
|
isPlaylistAdd.value = false;
|
|
26
|
+
step.value = 'add';
|
|
23
27
|
};
|
|
24
28
|
|
|
25
29
|
export const usePlaylistAdd = () => ({
|
|
@@ -27,4 +31,6 @@ export const usePlaylistAdd = () => ({
|
|
|
27
31
|
videoCard,
|
|
28
32
|
openPlaylistAdd,
|
|
29
33
|
closePlaylistAdd,
|
|
34
|
+
selectValue,
|
|
35
|
+
step,
|
|
30
36
|
});
|