mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 02:13:58 +01:00
exit sketch dropping changes action
This commit is contained in:
parent
579ac1203f
commit
084554b9e8
2 changed files with 12 additions and 1 deletions
|
|
@ -11,6 +11,17 @@ export default [
|
|||
services.sketcher.inPlaceEditor.exit();
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'sketchExit',
|
||||
appearance: {
|
||||
info: 'drop sketch changes and exit',
|
||||
label: 'exit sketch',
|
||||
cssIcons: ['times'],
|
||||
},
|
||||
invoke: ({services}) => {
|
||||
services.sketcher.inPlaceEditor.exit();
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'sketchOpenInTab',
|
||||
appearance: {
|
||||
|
|
|
|||
|
|
@ -48,6 +48,6 @@ export default function ({services, streams}) {
|
|||
'sketchConstraint_lockConvex'
|
||||
];
|
||||
streams.ui.toolbars.sketcherControl.value = [
|
||||
'sketchSaveAndExit', 'sketchOpenInTab'
|
||||
'sketchSaveAndExit', 'sketchOpenInTab', 'sketchExit'
|
||||
];
|
||||
}
|
||||
Loading…
Reference in a new issue