update
This commit is contained in:
parent
216b8f50be
commit
cb0a8f249e
@ -122,6 +122,7 @@
|
|||||||
},
|
},
|
||||||
"ForceUpdate.Message" : {
|
"ForceUpdate.Message" : {
|
||||||
"comment" : "Force update alert message",
|
"comment" : "Force update alert message",
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"en" : {
|
"en" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
@ -139,6 +140,7 @@
|
|||||||
},
|
},
|
||||||
"ForceUpdate.Title" : {
|
"ForceUpdate.Title" : {
|
||||||
"comment" : "Force update alert title",
|
"comment" : "Force update alert title",
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"en" : {
|
"en" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
@ -183,12 +185,6 @@
|
|||||||
},
|
},
|
||||||
"Login must not end with 'bot' for non-bot accounts" : {
|
"Login must not end with 'bot' for non-bot accounts" : {
|
||||||
|
|
||||||
},
|
|
||||||
"NeedUpdate.Message" : {
|
|
||||||
"comment" : "Need update alert message"
|
|
||||||
},
|
|
||||||
"NeedUpdate.Title" : {
|
|
||||||
"comment" : "Need update alert title"
|
|
||||||
},
|
},
|
||||||
"OK" : {
|
"OK" : {
|
||||||
"comment" : "Common OK\nProfile update alert button\nОбщий текст кнопки OK",
|
"comment" : "Common OK\nProfile update alert button\nОбщий текст кнопки OK",
|
||||||
@ -247,6 +243,7 @@
|
|||||||
},
|
},
|
||||||
"SoftUpdate.Message" : {
|
"SoftUpdate.Message" : {
|
||||||
"comment" : "Soft update alert message",
|
"comment" : "Soft update alert message",
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"en" : {
|
"en" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
@ -264,6 +261,7 @@
|
|||||||
},
|
},
|
||||||
"SoftUpdate.Title" : {
|
"SoftUpdate.Title" : {
|
||||||
"comment" : "Soft update alert title",
|
"comment" : "Soft update alert title",
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"en" : {
|
"en" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
@ -584,6 +582,9 @@
|
|||||||
},
|
},
|
||||||
"Выключено" : {
|
"Выключено" : {
|
||||||
|
|
||||||
|
},
|
||||||
|
"Вышла новая версия приложения с улучшениями и исправлениями." : {
|
||||||
|
"comment" : "Soft update alert message"
|
||||||
},
|
},
|
||||||
"Где найти сохранённые черновики?" : {
|
"Где найти сохранённые черновики?" : {
|
||||||
"comment" : "FAQ question: drafts"
|
"comment" : "FAQ question: drafts"
|
||||||
@ -646,6 +647,9 @@
|
|||||||
},
|
},
|
||||||
"Для начала, мы рекомендуем настроить параметры безопасности вашего аккаунта." : {
|
"Для начала, мы рекомендуем настроить параметры безопасности вашего аккаунта." : {
|
||||||
|
|
||||||
|
},
|
||||||
|
"Для продолжения работы необходимо обновить приложение до последней версии." : {
|
||||||
|
"comment" : "Need update alert message"
|
||||||
},
|
},
|
||||||
"Добавить в контакты" : {
|
"Добавить в контакты" : {
|
||||||
"comment" : "Message profile add to contacts title"
|
"comment" : "Message profile add to contacts title"
|
||||||
@ -679,6 +683,9 @@
|
|||||||
"Дополнительные действия." : {
|
"Дополнительные действия." : {
|
||||||
"comment" : "Message profile more action description"
|
"comment" : "Message profile more action description"
|
||||||
},
|
},
|
||||||
|
"Доступно обновление" : {
|
||||||
|
"comment" : "Soft update alert title"
|
||||||
|
},
|
||||||
"Другие устройства (%d)" : {
|
"Другие устройства (%d)" : {
|
||||||
"comment" : "Заголовок секции других устройств с количеством"
|
"comment" : "Заголовок секции других устройств с количеством"
|
||||||
},
|
},
|
||||||
@ -1843,6 +1850,9 @@
|
|||||||
},
|
},
|
||||||
"Обновить приложение" : {
|
"Обновить приложение" : {
|
||||||
|
|
||||||
|
},
|
||||||
|
"Обновление обязательно" : {
|
||||||
|
"comment" : "Need update alert title"
|
||||||
},
|
},
|
||||||
"Обратная связь" : {
|
"Обратная связь" : {
|
||||||
"comment" : "feedback: navigation title",
|
"comment" : "feedback: navigation title",
|
||||||
@ -2749,6 +2759,9 @@
|
|||||||
"Рейтинг собеседника" : {
|
"Рейтинг собеседника" : {
|
||||||
"comment" : "Message profile rating title"
|
"comment" : "Message profile rating title"
|
||||||
},
|
},
|
||||||
|
"Рекомендуется обновление" : {
|
||||||
|
"comment" : "Force update alert title"
|
||||||
|
},
|
||||||
"Рожки и ножки у сообщений" : {
|
"Рожки и ножки у сообщений" : {
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -3308,6 +3321,9 @@
|
|||||||
},
|
},
|
||||||
"Экспериментальная поддержка iOS 15/16" : {
|
"Экспериментальная поддержка iOS 15/16" : {
|
||||||
|
|
||||||
|
},
|
||||||
|
"Эта версия приложения устарела. Некоторые функции могут работать некорректно." : {
|
||||||
|
"comment" : "Force update alert message"
|
||||||
},
|
},
|
||||||
"Это устройство" : {
|
"Это устройство" : {
|
||||||
"comment" : "Заголовок секции текущего устройства"
|
"comment" : "Заголовок секции текущего устройства"
|
||||||
|
|||||||
@ -7,8 +7,11 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import Combine
|
import Combine
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
class LoginViewModel: ObservableObject {
|
class LoginViewModel: ObservableObject {
|
||||||
|
@AppStorage("appIsBlocked") private var isAppBlocked: Bool = false
|
||||||
|
|
||||||
@Published var username: String = ""
|
@Published var username: String = ""
|
||||||
@Published var userId: String = ""
|
@Published var userId: String = ""
|
||||||
@Published var password: String = ""
|
@Published var password: String = ""
|
||||||
@ -134,7 +137,8 @@ class LoginViewModel: ObservableObject {
|
|||||||
self?.socketService.disconnect()
|
self?.socketService.disconnect()
|
||||||
}
|
}
|
||||||
self?.isLoading = false
|
self?.isLoading = false
|
||||||
self?.isInitialLoading = false
|
if self?.isAppBlocked == false{
|
||||||
|
self?.isInitialLoading = false}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -97,12 +97,6 @@ struct yobbleApp: App {
|
|||||||
message: notice.message,
|
message: notice.message,
|
||||||
onUpdate: { updateChecker.openAppStore() }
|
onUpdate: { updateChecker.openAppStore() }
|
||||||
)
|
)
|
||||||
} else if let notice = updateChecker.forceUpdateNotice {
|
|
||||||
ForceUpdateView(
|
|
||||||
title: notice.title,
|
|
||||||
message: notice.message,
|
|
||||||
onUpdate: { updateChecker.openAppStore() }
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user