Indicate loading when DeepL button is used (#1272)
This commit is contained in:
parent
7d8516474c
commit
e72abeebc6
|
@ -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 New Issue