mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 10:11:00 +00:00
Indicate loading when DeepL button is used (#1272)
This commit is contained in:
parent
7d8516474c
commit
e72abeebc6
1 changed files with 4 additions and 0 deletions
|
@ -310,6 +310,10 @@ public class StatusRowViewModel: ObservableObject {
|
|||
}
|
||||
|
||||
func translateWithDeepL(userLang: String) async {
|
||||
withAnimation {
|
||||
isLoadingTranslation = true
|
||||
}
|
||||
|
||||
let deepLClient = getDeepLClient()
|
||||
let translation = try? await deepLClient.request(target: userLang,
|
||||
text: finalStatus.content.asRawText)
|
||||
|
|
Loading…
Reference in a new issue