Skip to content

Commit bb66297

Browse files
CopilotMathiasVDA
andcommitted
feat: rename Copy Tab to Duplicate Tab in context menu
Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com>
1 parent e9d9cf3 commit bb66297

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/yasgui/src/TabContextMenu.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class TabContextMenu {
1414
private contextEl!: HTMLElement;
1515
private newTabEl!: HTMLElement;
1616
private renameTabEl!: HTMLElement;
17-
private copyTabEl!: HTMLElement;
17+
private duplicateTabEl!: HTMLElement;
1818
private saveManagedQueryEl!: HTMLElement;
1919
private closeTabEl!: HTMLElement;
2020
private closeOtherTabsEl!: HTMLElement;
@@ -48,7 +48,7 @@ export default class TabContextMenu {
4848

4949
this.renameTabEl = this.getMenuItemEl("Rename Tab");
5050

51-
this.copyTabEl = this.getMenuItemEl("Copy Tab");
51+
this.duplicateTabEl = this.getMenuItemEl("Duplicate Tab");
5252

5353
this.saveManagedQueryEl = this.getMenuItemEl("Save as managed query");
5454

@@ -61,7 +61,7 @@ export default class TabContextMenu {
6161
// Add items to list
6262
dropDownList.appendChild(this.newTabEl);
6363
dropDownList.appendChild(this.renameTabEl);
64-
dropDownList.appendChild(this.copyTabEl);
64+
dropDownList.appendChild(this.duplicateTabEl);
6565
dropDownList.appendChild(this.saveManagedQueryEl);
6666
// Add divider
6767
dropDownList.appendChild(document.createElement("hr"));
@@ -101,8 +101,8 @@ export default class TabContextMenu {
101101
// Set rename functionality
102102
this.renameTabEl.onclick = () => currentTabEl.startRename();
103103

104-
// Copy tab functionality`
105-
this.copyTabEl.onclick = () => {
104+
// Duplicate tab functionality
105+
this.duplicateTabEl.onclick = () => {
106106
if (!tab) return;
107107
const config = cloneDeep(tab.getPersistedJson());
108108
config.id = getRandomId();

0 commit comments

Comments
 (0)