From 4734ce0f1f24d10286905d5e87156f0ecfe898e2 Mon Sep 17 00:00:00 2001 From: Global Server Date: Sat, 1 Jan 2022 12:41:17 +0100 Subject: [PATCH] Fixes ^ --- src/components/inputField.ts | 2 +- src/components/sidebarLeft/index.ts | 1 - src/components/sidebarRight/tabs/chatType.ts | 4 +--- src/scripts/out/langPack.strings | 6 +++--- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/inputField.ts b/src/components/inputField.ts index 29f87cd6..817409c0 100644 --- a/src/components/inputField.ts +++ b/src/components/inputField.ts @@ -109,7 +109,7 @@ class InputField { options.showLengthOn = Math.min(40, Math.round(options.maxLength / 3)); } - const {placeholder, maxLength, showLengthOn, name, plainText, canBeEdited} = options; + const {placeholder, maxLength, showLengthOn, name, plainText, canBeEdited = true} = options; let label = options.label || options.labelText; diff --git a/src/components/sidebarLeft/index.ts b/src/components/sidebarLeft/index.ts index d5767b0c..2924e7a6 100644 --- a/src/components/sidebarLeft/index.ts +++ b/src/components/sidebarLeft/index.ts @@ -42,7 +42,6 @@ import { closeBtnMenu } from "../misc"; import { indexOfAndSplice } from "../../helpers/array"; import ButtonIcon from "../buttonIcon"; import confirmationPopup from "../confirmationPopup"; -import { InputFile } from "../../layer"; export const LEFT_COLUMN_ACTIVE_CLASSNAME = 'is-left-column-shown'; diff --git a/src/components/sidebarRight/tabs/chatType.ts b/src/components/sidebarRight/tabs/chatType.ts index 8420644c..64a5ef3e 100644 --- a/src/components/sidebarRight/tabs/chatType.ts +++ b/src/components/sidebarRight/tabs/chatType.ts @@ -6,7 +6,7 @@ import { copyTextToClipboard } from "../../../helpers/clipboard"; import { randomLong } from "../../../helpers/random"; -import { Chat, ChatFull, ExportedChatInvite, ChannelLocation } from "../../../layer"; +import { Chat, ChatFull, ExportedChatInvite } from "../../../layer"; import appChatsManager from "../../../lib/appManagers/appChatsManager"; import appProfileManager from "../../../lib/appManagers/appProfileManager"; import Button from "../../button"; @@ -81,8 +81,6 @@ export default class AppChatTypeTab extends SliderSuperTabEventable { } }); - let uri = ''; - const btnRevoke = Button('btn-primary btn-transparent danger', {icon: 'delete', text: 'RevokeLink'}); attachClickEvent(btnRevoke, () => { diff --git a/src/scripts/out/langPack.strings b/src/scripts/out/langPack.strings index aaa853d4..f6ec248b 100644 --- a/src/scripts/out/langPack.strings +++ b/src/scripts/out/langPack.strings @@ -1,6 +1,6 @@ -"GrantPermissions" = "Grant permissions" -"NewGeoGroup" = "New GeoGroup" -"ChannelGeoGroupLocation" = "Group location" +"GrantPermissions" = "Grant permissions"; +"NewGeoGroup" = "New GeoGroup"; +"ChannelGeoGroupLocation" = "Group location"; "Animations" = "Animations"; "AttachAlbum" = "Album"; "BlockModal.Search.Placeholder" = "Block user...";