mirror of
https://github.com/olehomelchenko/astrolabe-nvc.git
synced 2025-12-21 21:22:23 +00:00
feat: complete Alpine.js migration with reactive state management and UI updates
This commit is contained in:
@@ -352,8 +352,8 @@ function settingsPanel() {
|
||||
renderSnippetList();
|
||||
|
||||
// Update metadata display if a snippet is selected
|
||||
if (window.currentSnippetId) {
|
||||
const snippet = SnippetStorage.getSnippet(window.currentSnippetId);
|
||||
if (Alpine.store('snippets').currentSnippetId) {
|
||||
const snippet = SnippetStorage.getSnippet(Alpine.store('snippets').currentSnippetId);
|
||||
if (snippet) {
|
||||
document.getElementById('snippet-created').textContent = formatDate(snippet.created, true);
|
||||
document.getElementById('snippet-modified').textContent = formatDate(snippet.modified, true);
|
||||
|
||||
Reference in New Issue
Block a user