Skip to content

Commit

Permalink
Remove top-bar buttons that no longer exist
Browse files Browse the repository at this point in the history
  • Loading branch information
linusha authored and merryman committed Jan 8, 2024
1 parent 42cfa93 commit d0761f8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions studio/top-bar.cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,6 @@ class GalyleoTopBarModel extends TopBarModel {
menu.position = handOrHaloModeButton.globalBounds().bottomLeft().subPt($world.scroll);
}

if (evt.targetMorph.name === 'undo button') {
target.execCommand('undo');
}

if (evt.targetMorph.name === 'redo button') {
target.execCommand('redo');
}

if (evt.targetMorph === shapeModeButton) {
this.setEditMode('Shape');
}
Expand All @@ -133,9 +125,6 @@ class GalyleoTopBarModel extends TopBarModel {
$world.execCommand('load world');
}

if (evt.targetMorph.name === 'comment browser button') {
this.toggleCommentBrowser();
}
}

reportBug () {
Expand Down Expand Up @@ -187,7 +176,7 @@ const GalyleoTopBar = component(TopBar, {
paddingTop: '2px'
}],
tooltip: 'Publish this dashboard'
}), without('save button'), without('undo button'), without('redo button'), without('open component browser'), without('load world button'), without('open asset browser'), without('comment browser button'), without('canvas mode button'), add({
}), without('save button'), without('open component browser'), without('load world button'), without('open asset browser'), without('canvas mode button'), add({
type: Image,
name: 'galyleo logo',
borderColor: Color.rgb(23, 160, 251),
Expand All @@ -204,4 +193,4 @@ const GalyleoTopBar = component(TopBar, {
]
});

export { GalyleoTopBar };
export { GalyleoTopBar };

0 comments on commit d0761f8

Please sign in to comment.