-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling the Custom Nodes and Trusted Location message #13138
Handling the Custom Nodes and Trusted Location message #13138
Conversation
Although this change is good, I don't think we should display trust warning in the bug senario from the first place. Can you hide the trust warning when switching to a different workspace which is a custom node workspace? |
{ | ||
hsvm.DynamoViewModel.FileTrustViewModel.ShowWarningPopup = false; | ||
hsvm.ClearWarning(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm why do we need to touch this piece of code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it forces to hide the untrusted message and bubble when we start to work in a just created custom node workspace, not only when we switch the workspaces.
@@ -270,6 +270,7 @@ internal void UpdateRunStatusMsgBasedOnStates() | |||
if(IsHomeSpace && !IsCurrentSpace) | |||
{ | |||
SetCurrentWarning(NotificationLevel.Mild, string.Empty); | |||
DynamoViewModel.FileTrustViewModel.ShowWarningPopup = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the gif, there will be a flash of trust warning displayed then disappear.. Less desirable, can we hide it even earlier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think we still need this fix here in addition to other changes?
@jesusalvino Nice tries but I would love something more granular, for example, you can touch the visibility at https://github.com/DynamoDS/Dynamo/blob/master/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs#L220 before executing the command to switch tabs. Or you can subscribe to |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much cleaner, LGTM once the remaining comments addressed
Done |
SetupFooterNotificationItems(); | ||
} | ||
|
||
private void DynamoViewModel_PropertyChanged(object sender, PropertyChangedEventArgs e) | ||
{ | ||
if (e.PropertyName == "CurrentSpace" && !(sender as DynamoViewModel).ViewingHomespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use nameof
to avoid spelling mistakes and make refactoring easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use
nameof
to avoid spelling mistakes and make refactoring easier.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@QilongTang Kindly, Could you let me know if we have any pending here please ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Waiting for PR checks and also checking @jesusalvino is the last gif still valid? |
yes, the last gif is valid since the behavior is the same with the refactoring |
Purpose
Handling the Trusted location message when a custom node space is opened.
https://jira.autodesk.com/browse/DYN-5089
Declarations
Check these if you believe they are true
*.resx
filesReviewers
@QilongTang
FYIs
@RobertGlobant20 @filipeotero