-
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, xod-client-electron): make snack bar messages persi…
…stent by default
- Loading branch information
Showing
10 changed files
with
79 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export default { | ||
SUCCESS: 'Uploaded successfully', | ||
SUCCESS: { | ||
title: 'Uploaded successfully', | ||
persistent: false, | ||
}, | ||
}; |
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,24 +1,25 @@ | ||
import composeMessage from '../messages/composeMessage'; | ||
|
||
export const PATCH_FOR_NODE_IS_MISSING = 'Patch for this node is missing.'; | ||
|
||
export const libInstalled = (libName, version) => | ||
composeMessage(`${libName} @ ${version} installed successfully`); | ||
export const libInstalled = (libName, version) => ({ | ||
title: `${libName} @ ${version} installed successfully`, | ||
persistent: false, | ||
}); | ||
|
||
export const CLIPBOARD_RECURSION_PASTE_ERROR = composeMessage( | ||
'Canʼt paste a patch into itself' | ||
); | ||
export const clipboardMissingPatchPasteError = missingPatches => | ||
composeMessage( | ||
'Canʼt paste', | ||
`Canʼt find following patches: ${missingPatches}` | ||
); | ||
export const CLIPBOARD_RECURSION_PASTE_ERROR = { | ||
title: 'Canʼt paste a patch into itself', | ||
persistent: false, | ||
}; | ||
export const clipboardMissingPatchPasteError = missingPatches => ({ | ||
title: 'Canʼt paste', | ||
note: `Canʼt find following patches: ${missingPatches}`, | ||
}); | ||
|
||
export const LIB_SUGGESTER_TYPE_TO_BEGIN = | ||
'Type owner/libname to find a library'; | ||
export const LIB_SUGGESTER_NOTHING_FOUND = 'No library found'; | ||
|
||
export const NO_PATCH_TO_TRANSPILE = composeMessage( | ||
'No patch opened', | ||
'Open a patch to upload and try again' | ||
); | ||
export const NO_PATCH_TO_TRANSPILE = { | ||
title: 'No patch opened', | ||
solution: 'Open a patch to upload and try again', | ||
persistent: false, | ||
}; |
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