mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2025-12-21 21:22:25 +00:00
feat: add duplicate snippet functionality in SnippetManager and UI
This commit is contained in:
@@ -60,6 +60,11 @@ export class UIManager {
|
||||
e.stopPropagation();
|
||||
this.snippetManager.deleteSnippet(snippet.id);
|
||||
}));
|
||||
|
||||
buttonsDiv.appendChild(this.createButton('📄', 'duplicate-snippet', (e) => {
|
||||
e.stopPropagation();
|
||||
this.snippetManager.duplicateSnippet(snippet.id);
|
||||
}));
|
||||
|
||||
div.appendChild(buttonsDiv);
|
||||
container.appendChild(div);
|
||||
|
||||
Reference in New Issue
Block a user