itube-specs 0.0.609 → 0.0.611
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.
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<p class="s-auth-recovery__text">{{ t('auth.recovery_text') }}</p>
|
|
13
13
|
<SInput
|
|
14
14
|
v-model="form.email"
|
|
15
|
-
label="
|
|
16
|
-
placeholder="
|
|
15
|
+
:label="$t('email')"
|
|
16
|
+
:placeholder="$t('email')"
|
|
17
17
|
hide-label
|
|
18
18
|
autocomplete="email"
|
|
19
19
|
:error="error.email"
|
|
@@ -75,7 +75,9 @@
|
|
|
75
75
|
v-model="newPlaylistName"
|
|
76
76
|
:placeholder="$t('playlist.new_playlist')"
|
|
77
77
|
:icon="newPlaylistName ? 'close' : undefined"
|
|
78
|
+
:error="nameError"
|
|
78
79
|
@icon-click="clearNewPlaylist"
|
|
80
|
+
@update:error="nameError = $event"
|
|
79
81
|
/>
|
|
80
82
|
<SButton
|
|
81
83
|
size="s"
|
|
@@ -170,6 +172,7 @@ async function closePopup() {
|
|
|
170
172
|
|
|
171
173
|
const newPlaylistName = ref('');
|
|
172
174
|
const isPrivate = ref(false);
|
|
175
|
+
const nameError = ref(false);
|
|
173
176
|
|
|
174
177
|
function clearNewPlaylist() {
|
|
175
178
|
newPlaylistName.value = '';
|
|
@@ -184,6 +187,7 @@ function createPlaylist() {
|
|
|
184
187
|
);
|
|
185
188
|
|
|
186
189
|
if (nameExists) {
|
|
190
|
+
nameError.value = true;
|
|
187
191
|
snackbarTheme.value = 'error';
|
|
188
192
|
snackbarText.value = 'playlist_name_exists';
|
|
189
193
|
return;
|
package/package.json
CHANGED
|
@@ -9,3 +9,12 @@ export enum ELanguage {
|
|
|
9
9
|
Russian = 'ru',
|
|
10
10
|
Chinese = 'zh',
|
|
11
11
|
}
|
|
12
|
+
|
|
13
|
+
const languageHeaderMap: Partial<Record<ELanguage, string>> = {
|
|
14
|
+
[ELanguage.Japanese]: 'jp',
|
|
15
|
+
[ELanguage.Chinese]: 'ch',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export function toHeaderLanguage(lang: ELanguage): string {
|
|
19
|
+
return languageHeaderMap[lang] ?? lang;
|
|
20
|
+
}
|