Skip to content

Commit

Permalink
Rename error message methods to the term Note
Browse files Browse the repository at this point in the history
  • Loading branch information
EightSQ committed Jun 20, 2019
1 parent 90fd3d0 commit d5a6f6b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ checkIfAccountnameUnused: aDictionary
" return false if account with same name exists "
ICHelper loadCredentialsIntoDictionaries
detect: [:credDict | (aDictionary at: 'name') = (credDict at: 'name')]
ifFound: [:credDict | self displayAccountnameExistsErrorMessage. ^false]
ifFound: [:credDict | self displayAccountnameExistsNote. ^false]
ifNone: [^true]
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ checkIfAllFieldsFilled: aDictionary
| possiblyEmptyParameters |

possiblyEmptyParameters := self emptyParametersIn: aDictionary.
self displayEmptyFieldErrorMessageIfNecessary: possiblyEmptyParameters.
self displayEmptyFieldNoteIfNecessary: possiblyEmptyParameters.

^ possiblyEmptyParameters isEmpty
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
toasts
displayAccountnameExistsErrorMessage
displayAccountnameExistsNote

UserDialogBoxMorph inform: 'This account name already exists.' title: ''
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
toasts
displayEmptyFieldErrorMessageIfNecessary: aCollection
displayEmptyFieldNoteIfNecessary: aCollection

(aCollection isEmpty)
ifFalse: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"buttonLabel" : "pm 6/3/2019 18:47",
"changeInputField:" : "DH 7/25/2018 00:10",
"checkBoxColor" : "ms 7/13/2016 17:34",
"checkIfAccountnameUnused:" : "fr 6/6/2019 09:53",
"checkIfAllFieldsFilled:" : "ok 6/6/2019 20:14",
"checkIfAccountnameUnused:" : "ok 6/20/2019 11:30",
"checkIfAllFieldsFilled:" : "ok 6/20/2019 11:30",
"checkIfLastCharacterIsTab:" : "C.G. 7/25/2018 14:22",
"constructEmptyFieldsErrorMessage:" : "ok 6/6/2019 20:25",
"defaultBackgroundColor" : "C.G. 6/21/2018 00:28",
"dialogTitle" : "ms 6/14/2016 09:53",
"displayAccountnameExistsErrorMessage" : "ok 6/5/2019 21:04",
"displayEmptyFieldErrorMessageIfNecessary:" : "ok 6/6/2019 20:24",
"displayAccountnameExistsNote" : "ok 6/20/2019 11:30",
"displayEmptyFieldNoteIfNecessary:" : "ok 6/20/2019 11:30",
"emptyParametersIn:" : "ok 6/6/2019 20:05",
"endpoint" : "C.G. 7/25/2018 14:22",
"endpoint:" : "C.G. 7/25/2018 14:23",
Expand Down

0 comments on commit d5a6f6b

Please sign in to comment.