mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2025-12-21 21:22:25 +00:00
feat: simplify button labels in editor UI for clarity
This commit is contained in:
@@ -47,9 +47,9 @@
|
|||||||
<div class="panel-header">
|
<div class="panel-header">
|
||||||
<h2>Editor</h2>
|
<h2>Editor</h2>
|
||||||
<div class="editor-controls">
|
<div class="editor-controls">
|
||||||
<button class="button secondary" id="version-switch" style="display: none">View Saved
|
<button class="button" id="save-snippet" disabled>Save</button>
|
||||||
Version</button>
|
<button class="button secondary" id="version-switch" style="display: none">View Saved</button>
|
||||||
<button class="button" id="save-snippet" disabled>Save Changes</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="monaco-editor"></div>
|
<div id="monaco-editor"></div>
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export class UIManager {
|
|||||||
|
|
||||||
versionSwitch.style.display = hasDraftChanges ? 'block' : 'none';
|
versionSwitch.style.display = hasDraftChanges ? 'block' : 'none';
|
||||||
versionSwitch.textContent = isDraftVersion ?
|
versionSwitch.textContent = isDraftVersion ?
|
||||||
'View Saved Version (Read-only)' :
|
'View Saved' :
|
||||||
'Switch to Draft Version (Editable)';
|
'View Draft';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user