Move delete to use a confirmation dialog + various other fixes. (#645)

This commit is contained in:
Max Goedjen
2025-08-27 23:45:56 -07:00
committed by GitHub
parent c5052dd457
commit fb4dec383b
8 changed files with 96 additions and 84 deletions

View File

@@ -12,6 +12,8 @@ struct StoreListView: View {
}
private func secretRenamed(secret: AnySecret) {
// Toggle so name updates in list.
activeSecret = nil
activeSecret = secret
}
@@ -56,7 +58,7 @@ struct StoreListView: View {
extension StoreListView {
private var nextDefaultSecret: AnySecret? {
return storeList.stores.first(where: { !$0.secrets.isEmpty })?.secrets.first
return storeList.allSecrets.first
}
}