exit sketch dropping changes action

This commit is contained in:
Val Erastov 2018-11-29 23:43:05 -08:00
parent 579ac1203f
commit 084554b9e8
2 changed files with 12 additions and 1 deletions

View file

@ -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: {

View file

@ -48,6 +48,6 @@ export default function ({services, streams}) {
'sketchConstraint_lockConvex'
];
streams.ui.toolbars.sketcherControl.value = [
'sketchSaveAndExit', 'sketchOpenInTab'
'sketchSaveAndExit', 'sketchOpenInTab', 'sketchExit'
];
}