front: update picker descriptions

This commit is contained in:
wukko 2024-01-28 14:13:53 +06:00
parent d73d431eec
commit b0d1840087
2 changed files with 3 additions and 8 deletions

View file

@ -221,11 +221,11 @@ function popup(type, action, text) {
if (navigator.canShare) eid("pd-share").style.display = "flex"; if (navigator.canShare) eid("pd-share").style.display = "flex";
break; break;
case "picker": case "picker":
eid("picker-title").innerHTML = loc.MediaPickerTitle;
eid("picker-subtitle").innerHTML = isMobile ? loc.MediaPickerExplanationPhone : loc.MediaPickerExplanationPC;
switch (text.type) { switch (text.type) {
case "images": case "images":
eid("picker-title").innerHTML = loc.MediaPickerTitle;
eid("picker-subtitle").innerHTML = isMobile ? loc.ImagePickerExplanationPhone : loc.ImagePickerExplanationPC;
eid("picker-holder").classList.remove("various"); eid("picker-holder").classList.remove("various");
eid("picker-download").href = text.audio; eid("picker-download").href = text.audio;
@ -241,9 +241,6 @@ function popup(type, action, text) {
} }
break; break;
default: default:
eid("picker-title").innerHTML = loc.MediaPickerTitle;
eid("picker-subtitle").innerHTML = isMobile ? loc.MediaPickerExplanationPhone : loc.MediaPickerExplanationPC;
eid("picker-holder").classList.add("various"); eid("picker-holder").classList.add("various");
for (let i in text.arr) { for (let i in text.arr) {

View file

@ -637,8 +637,6 @@ export default function(obj) {
'MediaPickerTitle', 'MediaPickerTitle',
'MediaPickerExplanationPhone', 'MediaPickerExplanationPhone',
'MediaPickerExplanationPC', 'MediaPickerExplanationPC',
'ImagePickerExplanationPhone',
'ImagePickerExplanationPC',
'FeatureErrorGeneric', 'FeatureErrorGeneric',
'ClipboardErrorNoPermission', 'ClipboardErrorNoPermission',
'ClipboardErrorFirefox', 'ClipboardErrorFirefox',