Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Update Added/Saved Contact Toast messages
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley committed Nov 17, 2017
1 parent 1cf5170 commit cf952c0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
self.showToast = function (message, variable, error) {
if (error) {
toastService.error(
gettextCatalog.getString(message) + ' - ' + variable,
gettextCatalog.getString(message) + (variable ? ' - ' + variable : ''),
null,
true
)
} else {
toastService.success(
gettextCatalog.getString(message) + ' - ' + variable,
gettextCatalog.getString(message) + (variable ? ' - ' + variable : ''),
null,
true
)
Expand Down Expand Up @@ -109,7 +109,7 @@

self.contacts.push(newContact)
self.save()
self.showToast('Contact successfully added', name, false)
self.showToast(`Contact '${name}' with address '${address}' added successfully`)
cancel()
}

Expand Down Expand Up @@ -167,7 +167,7 @@
}
}
self.save()
self.showToast('Contact successfully saved', name, false)
self.showToast(`Contact '${name}' with address '${address}' saved successfully`)
cancel()
}

Expand Down

0 comments on commit cf952c0

Please sign in to comment.