-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tweak(xod-client): more consistent snackbar messages
- Loading branch information
Showing
7 changed files
with
54 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
import composeMessage from '../messages/composeMessage'; | ||
export const INCORRECT_CREDENTIALS = { | ||
title: 'Incorrect username or password', | ||
// TODO: button with dircet URL for password recovery | ||
solution: | ||
'Make sure you use the same credentials as on https://xod.io site. ' + | ||
'If you forgot the password, open the site to recover', | ||
}; | ||
|
||
export const INCORRECT_CREDENTIALS = composeMessage( | ||
'Incorrect username or password' | ||
); | ||
export const SERVICE_UNAVAILABLE = composeMessage('Service unavailable'); | ||
export const LOG_IN_TO_CONTINUE = composeMessage('Please log in to continue'); | ||
export const SERVICE_UNAVAILABLE = { | ||
title: 'Service unavailable', | ||
note: 'Failed to complete a request to the XOD server.', | ||
// TODO: button “Open XOD site” | ||
solution: | ||
'Make sure your internet connection is up and ' + | ||
'https://xod.io site is allowed by your proxy or firewall.', | ||
}; | ||
|
||
export const LOG_IN_TO_CONTINUE = { | ||
title: 'Log in to continue', | ||
// TODO: parametrize action | ||
note: 'The action requires that you are signed in into your XOD account.', | ||
}; |