diff --git a/BuildsAppReborn.Access.UI/ViewModel/Tfs2017BuildProviderViewModel.cs b/BuildsAppReborn.Access.UI/ViewModel/Tfs2017BuildProviderViewModel.cs index 6a3bf22..f3dbfc7 100644 --- a/BuildsAppReborn.Access.UI/ViewModel/Tfs2017BuildProviderViewModel.cs +++ b/BuildsAppReborn.Access.UI/ViewModel/Tfs2017BuildProviderViewModel.cs @@ -69,9 +69,13 @@ public String AccessToken get { return String.Empty; } set { - MonitorSettings[Tfs2017BuildProvider.PersonalAccessTokenSettingsKey] = value; - OnPropertyChanged(); - ConnectCommand?.RaiseCanExecuteChanged(); + // ToDo: Token should only be saved if connection was successful + if (!String.IsNullOrWhiteSpace(value)) + { + MonitorSettings[Tfs2017BuildProvider.PersonalAccessTokenSettingsKey] = value; + OnPropertyChanged(); + ConnectCommand?.RaiseCanExecuteChanged(); + } } } diff --git a/BuildsAppReborn.Access.UI/Views/Tfs2017BuildProviderView.xaml b/BuildsAppReborn.Access.UI/Views/Tfs2017BuildProviderView.xaml index 73cb8e5..dd44f33 100644 --- a/BuildsAppReborn.Access.UI/Views/Tfs2017BuildProviderView.xaml +++ b/BuildsAppReborn.Access.UI/Views/Tfs2017BuildProviderView.xaml @@ -69,7 +69,6 @@