Skip to content
Snippets Groups Projects
Commit efc1f346 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update BackupView

parent d89f26a2
No related branches found
No related tags found
2 merge requests!110Backup improvements & example,!102Release 1.0.0
...@@ -43,12 +43,12 @@ public struct BackupView: View { ...@@ -43,12 +43,12 @@ public struct BackupView: View {
WithViewStore(store, observe: ViewState.init) { viewStore in WithViewStore(store, observe: ViewState.init) { viewStore in
Form { Form {
Group { Group {
if !viewStore.isRunning {
newBackupSection(viewStore)
}
if viewStore.isRunning || viewStore.backup != nil { if viewStore.isRunning || viewStore.backup != nil {
backupSection(viewStore) backupSection(viewStore)
} }
if !viewStore.isRunning {
newBackupSection(viewStore)
}
} }
.disabled(viewStore.isLoading) .disabled(viewStore.isLoading)
.alert( .alert(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment