You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consolidate labels prop and add restart/reset UI message
Replace many individual label props with a single labels object passed from App to Static. Update Static to read labels from props.labels, simplify setLabels in App, and update defaultProps/propTypes accordingly. Add UI and handlers for a restart message and a reset button shown after importing settings (showRestartMessage/hideRestartMessage/resetSettings) and clear the file input after import. Add related CSS for import row, reset button, and restart message, and tweak bottomMenu classes in App.css.
// We check explicitly the lblImportSettings control due to it's a label that wraps inputs, it's no necessary for the launch and signing buttons because they receive the focus ready to are hit with the Enter key
@@ -244,28 +291,24 @@ class Static extends React.Component {
244
291
}
245
292
246
293
Static.defaultProps={
247
-
signInTitle: 'Sign In',
248
-
signInTooltip: 'Sign in to access online services that integrate with your desktop software.',
249
-
signingInTitle: 'Signing In',
250
-
signOutTitle: 'Sign Out',
251
-
signOutTooltip: 'Signing out of Dynamo will sign you out of all Autodesk desktop products.',
252
-
launchTitle: 'Launch Dynamo',
253
-
showScreenAgainLabel: 'Don\'t show this screen again',
254
-
importSettingsTitle: 'Import Settings',
255
-
importSettingsTooltipDescription: 'You can import custom settings here, which will overwrite your current settings. If you\'d like to preserve a copy of your current settings, export them before importing new settings. Settings not shown in the Preferences panel will be applied once Dynamo and any host program restarts.'
294
+
labels: {
295
+
signInTitle: 'Sign In',
296
+
signInTooltip: 'Sign in to access online services that integrate with your desktop software.',
297
+
signingInTitle: 'Signing In',
298
+
signOutTitle: 'Sign Out',
299
+
signOutTooltip: 'Signing out of Dynamo will sign you out of all Autodesk desktop products.',
300
+
launchTitle: 'Launch Dynamo',
301
+
showScreenAgainLabel: 'Don\'t show this screen again',
302
+
importSettingsTitle: 'Import Settings',
303
+
importSettingsTooltipDescription: 'You can import custom settings here, which will overwrite your current settings. If you\'d like to preserve a copy of your current settings, export them before importing new settings. Settings not shown in the Preferences panel will be applied once Dynamo and any host program restarts.',
304
+
restartMessage: 'Settings imported successfully. Please restart Dynamo for changes to take effect.',
0 commit comments