This commit is contained in:
Max Goedjen
2025-08-31 00:58:16 -07:00
parent b949d846c1
commit cd76bb95ec
8 changed files with 177 additions and 91 deletions

View File

@@ -110,11 +110,11 @@ extension ContentView {
})
.sheet(isPresented: $showingCreation) {
if let modifiable = storeList.modifiableStore {
CreateSecretView(store: modifiable, showing: $showingCreation)
.onDisappear {
guard let newest = modifiable.secrets.last else { return }
activeSecret = newest
CreateSecretView(store: modifiable, showing: $showingCreation) { created in
if let created {
activeSecret = created
}
}
}
}
}