mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Add Templates UI and logic to SwitchPage
cgen-28f5db5211944f64abdcc323dfb9a540
This commit is contained in:
parent
cb97080ca0
commit
8b4b15a184
1 changed files with 15 additions and 0 deletions
|
|
@ -174,6 +174,21 @@ export function SwitchPage() {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="switch-pane">
|
||||
<div className="switch-pane-header">Templates</div>
|
||||
<div className="switch-pane-body">
|
||||
<div style={{ marginBottom: 8 }}>
|
||||
<button className="switch-secondary-btn" onClick={onSaveRepoAsTemplate} disabled={!activeRepo}>Save Current Repo as Template</button>
|
||||
<button className="switch-secondary-btn" onClick={onCreateRepoFromTemplate}>New Repo from Template</button>
|
||||
</div>
|
||||
<div>
|
||||
<div style={{ fontSize: 12, color: '#9da5b4', margin: '6px 0' }}>Issue Templates</div>
|
||||
<div style={{ display: 'flex', gap: 6, marginBottom: 6 }}>
|
||||
<button className="switch-secondary-btn" onClick={onCreateIssueTemplate}>New Issue Template</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="switch-pane">
|
||||
<div className="switch-pane-header">Explorer</div>
|
||||
<div className="switch-pane-body">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue