Skip to content

Commit

Permalink
Editor: Empty project title on clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 15, 2021
1 parent 7c3d2f4 commit e07eca4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions editor/js/Sidebar.Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { SidebarProjectVideo } from './Sidebar.Project.Video.js';
function SidebarProject( editor ) {

var config = editor.config;
var signals = editor.signals;
var strings = editor.strings;

var container = new UISpan();
Expand Down Expand Up @@ -69,6 +70,15 @@ function SidebarProject( editor ) {

}

// Signals

signals.editorCleared.add( function () {

title.setValue( '' );
config.setKey( 'project/title', '' );

} );

return container;

}
Expand Down

0 comments on commit e07eca4

Please sign in to comment.