Skip to content

Commit 3b63aea

Browse files
committed
Rename info button action to .showInfo
1 parent 0fe6cdc commit 3b63aea

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Authenticator/Source/Root.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ extension Root {
236236
return .showErrorMessage("Failed to load backup info.")
237237
}
238238

239-
case .showInfoList:
239+
case .showInfo:
240240
modal = .info(InfoList(), nil)
241241
return nil
242242
}

Authenticator/Source/TokenList.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ extension TokenList {
100100
case clearFilter
101101

102102
case showBackupInfo
103-
case showInfoList
103+
case showInfo
104104
}
105105

106106
enum Effect {
@@ -114,7 +114,7 @@ extension TokenList {
114114
case showErrorMessage(String)
115115
case showSuccessMessage(String)
116116
case showBackupInfo
117-
case showInfoList
117+
case showInfo
118118
}
119119

120120
mutating func update(_ action: Action) -> Effect? {
@@ -148,8 +148,8 @@ extension TokenList {
148148
case .showBackupInfo:
149149
return .showBackupInfo
150150

151-
case .showInfoList:
152-
return .showInfoList
151+
case .showInfo:
152+
return .showInfo
153153
}
154154
}
155155

@@ -182,11 +182,11 @@ func == (lhs: TokenList.Action, rhs: TokenList.Action) -> Bool {
182182
return l == r
183183
case (.showBackupInfo, .showBackupInfo):
184184
return true
185-
case (.showInfoList, .showInfoList):
185+
case (.showInfo, .showInfo):
186186
return true
187187
case (.beginAddToken, _), (.editPersistentToken, _), (.updatePersistentToken, _), (.moveToken, _),
188188
(.deletePersistentToken, _), (.copyPassword, _), (.filter, _), (.clearFilter, _), (.showBackupInfo, _),
189-
(.showInfoList, _):
189+
(.showInfo, _):
190190
// Using this verbose case for non-matching `Action`s instead of `default` ensures a
191191
// compiler error if a new `Action` is added and not expicitly checked for equality.
192192
return false

Authenticator/Source/TokenListViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class TokenListViewController: UITableViewController {
201201
}
202202

203203
func showLicenseInfo() {
204-
dispatchAction(.showInfoList)
204+
dispatchAction(.showInfo)
205205
}
206206
}
207207

0 commit comments

Comments
 (0)