From 5666eb24aa15b3f88e4f255a63fcf708038535c2 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 24 Aug 2021 21:02:59 +0300 Subject: [PATCH] fixes --- community/currency-widget-ru.lua | 3 +++ ru/calendar-ru-widget.lua | 1 + 2 files changed, 4 insertions(+) diff --git a/community/currency-widget-ru.lua b/community/currency-widget-ru.lua index 6746543..c13f16b 100644 --- a/community/currency-widget-ru.lua +++ b/community/currency-widget-ru.lua @@ -2,6 +2,7 @@ -- description = "Виджет курса валюты. Нажмите на виджет, чтобы изменить валюту. Базовая валюта и дата меняются в контекстном меню." -- data_source = "https://exchangerate.host/" -- type = "widget" +-- language = "ru" -- author = "Andrey Gavrilov" -- version = "2.0" @@ -57,6 +58,7 @@ function on_click(idx) if idx == 1 then date = prev_date(date) get_rates(date) + ui:show_toast("Загрузка") elseif idx == 2 then dialog_id ="amount" ui:show_edit_dialog("Введите количество", "", amount) @@ -69,6 +71,7 @@ function on_click(idx) elseif idx == 8 then date = next_date(date) get_rates(date) + ui:show_toast("Загрузка") else dialog_id = "date" ui:show_edit_dialog("Введите дату курса", "Формат даты - 31.12.2020. Пустое значение - текущая дата", date:gsub("(%d+)-(%d+)-(%d+)", "%3.%2.%1")) diff --git a/ru/calendar-ru-widget.lua b/ru/calendar-ru-widget.lua index e92b877..a65c174 100644 --- a/ru/calendar-ru-widget.lua +++ b/ru/calendar-ru-widget.lua @@ -2,6 +2,7 @@ -- description = "Производственный календарь" -- data_source = "https://isdayoff.ru/" -- type = "widget" +-- lang = "ru" -- author = "Andrey Gavrilov" -- version = "1.0"