Skip to content

Commit

Permalink
Merge pull request #610 from IBM/fix/delete-library
Browse files Browse the repository at this point in the history
Update configuration for deleting a library
  • Loading branch information
edmundreinhardt authored Oct 22, 2024
2 parents 6aebdac + 6a3931f commit d0c11ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion l10n/bundle.l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"Cancel": "Cancel",
"Cleared {0} *{1}.": "Cleared {0} *{1}.",
"Error clearing library! {0}": "Error clearing library! {0}",
"Are you sure you want to delete {0} {1}?": "Are you sure you want to delete {0} {1}?",
"This option will delete library {0} (and all of its contents) from the IBM i system. Are you sure you want to do this (this action cannot be undone)?": "This option will delete library {0} (and all of its contents) from the IBM i system. Are you sure you want to do this (this action cannot be undone)?",
"Deleting object {0} {1}...": "Deleting object {0} {1}...",
"Deleted {0} {1}": "Deleted {0} {1}",
"Error deleting object! {0}": "Error deleting object! {0}",
Expand All @@ -178,6 +178,7 @@
"Source file name must be 10 characters or less": "Source file name must be 10 characters or less",
"Creating source file {0}.": "Creating source file {0}.",
"Error creating source file! {0}": "Error creating source file! {0}",
"Are you sure you want to delete {0} {1}?": "Are you sure you want to delete {0} {1}?",
"Are you sure you want to delete {0}?": "Are you sure you want to delete {0}?",
"Deleting member {0}...": "Deleting member {0}...",
"Deleted {0}": "Deleted {0}",
Expand Down
5 changes: 3 additions & 2 deletions src/views/projectExplorer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,8 @@ export default class ProjectExplorer implements TreeDataProvider<ProjectExplorer
if (element) {
const objectBrowseObject = toObjectBrowserObject(element);

let result = await window.showWarningMessage(l10n.t('Are you sure you want to delete {0} {1}?', objectBrowseObject.path, objectBrowseObject.object.type.toUpperCase()), l10n.t(`Yes`), l10n.t(`Cancel`));
const library = element.label!.toString();
let result = await window.showWarningMessage(l10n.t('This option will delete library {0} (and all of its contents) from the IBM i system. Are you sure you want to do this (this action cannot be undone)?', library), l10n.t(`Yes`), l10n.t(`Cancel`));

if (result === l10n.t(`Yes`)) {
const ibmi = getInstance();
Expand Down Expand Up @@ -1366,7 +1367,7 @@ export default class ProjectExplorer implements TreeDataProvider<ProjectExplorer
}
}

async resolveTreeItem(item: TreeItem, element: ProjectExplorerTreeItem, token: CancellationToken): Promise<ProjectExplorerTreeItem> {
async resolveTreeItem(item: TreeItem, element: ProjectExplorerTreeItem, token: CancellationToken): Promise<ProjectExplorerTreeItem> {
if (element.getToolTip) {
element.tooltip = await element.getToolTip();
}
Expand Down

0 comments on commit d0c11ed

Please sign in to comment.