From afc8427d967ed64dee89235df40413aa3e36d377 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 18 Sep 2018 20:21:14 +0200 Subject: [PATCH] [UX] Add password field to FTP (Cloud storage) (#4232) --- frontend/apps/cloudstorage/ftp.lua | 1 + frontend/ui/widget/multiinputdialog.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/apps/cloudstorage/ftp.lua b/frontend/apps/cloudstorage/ftp.lua index 5408ebe34..bc1e9e5f3 100644 --- a/frontend/apps/cloudstorage/ftp.lua +++ b/frontend/apps/cloudstorage/ftp.lua @@ -90,6 +90,7 @@ function Ftp:config(item, callback) { text = text_password, input_type = "string", + text_type = "password", hint = hint_password, }, { diff --git a/frontend/ui/widget/multiinputdialog.lua b/frontend/ui/widget/multiinputdialog.lua index c2f3e0307..e3ce73782 100644 --- a/frontend/ui/widget/multiinputdialog.lua +++ b/frontend/ui/widget/multiinputdialog.lua @@ -42,6 +42,7 @@ function MultiInputDialog:init() text = field.text or "", hint = field.hint or "", input_type = field.input_type or "string", + text_type = field.text_type, face = self.input_face, width = self.width * 0.9, focused = k == 1 and true or false,