Skip to content

Commit

Permalink
fix: add more error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cricketthomas committed Aug 1, 2024
1 parent f9998f2 commit 4abd671
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions KeyVaultExplorer/ViewModels/PropertiesPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ private async Task EditVersion()
Title = "Edit " + (IsKey ? "Key" : IsSecret ? "Secret" : "Certificate"),
IsPrimaryButtonEnabled = true,
PrimaryButtonText = "Apply Changes",
DefaultButton = ContentDialogButton.Primary,
CloseButtonText = "Cancel",
MinWidth = 650
};
Expand All @@ -205,8 +206,7 @@ private async Task EditVersion()
var currentItem = SecretPropertiesList.OrderByDescending(x => x.CreatedOn).First();
var viewModel = new CreateNewSecretVersionViewModel();
bool? isEnabledSecret = currentItem.Enabled;
if (isEnabledSecret is not null && isEnabledSecret is true)
await ShouldShowValue(true);

viewModel.KeyVaultSecretModel = currentItem;
viewModel.IsEdit = true;
dialog.PrimaryButtonClick += async (sender, args) =>
Expand Down Expand Up @@ -293,6 +293,7 @@ private async Task NewVersion()
PrimaryButtonText = "Create Version",
IsPrimaryButtonEnabled = true,
CloseButtonText = "Cancel",
DefaultButton = ContentDialogButton.Primary,
MinWidth = 650,
MinHeight = 700
};
Expand Down

0 comments on commit 4abd671

Please sign in to comment.