Skip to content

Commit b164fef

Browse files
[PM-22176] Remove Edit button from View Item toolbar (#1622)
1 parent 074bf7b commit b164fef

9 files changed

+4
-10
lines changed

BitwardenShared/UI/Vault/VaultItem/ViewItem/ViewItemView.swift

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,11 @@ struct ViewItemView: View {
6868
}
6969

7070
ToolbarItemGroup(placement: .navigationBarTrailing) {
71-
if let state = store.state.loadingState.data {
72-
if isRestoredEnabled {
73-
toolbarButton(Localizations.restore) {
74-
await store.perform(.restorePressed)
75-
}
76-
.accessibilityIdentifier("RestoreButton")
77-
} else {
78-
editToolbarButton {
79-
store.send(.editPressed)
80-
}
71+
if isRestoredEnabled {
72+
toolbarButton(Localizations.restore) {
73+
await store.perform(.restorePressed)
8174
}
75+
.accessibilityIdentifier("RestoreButton")
8276
}
8377

8478
VaultItemManagementMenuView(

0 commit comments

Comments
 (0)