Skip to content

Commit

Permalink
fixed bug report and publish in top bar
Browse files Browse the repository at this point in the history
  • Loading branch information
rickmcgeer committed Apr 18, 2024
1 parent 379e978 commit 4b53c78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"lively": {
"projectDependencies": [],
"boundLivelyVersion": "9d55f9b9e7e282b564515e6a5d978680b13bb375",
"boundLivelyVersion": "beee0511d1ef4cdbd1af1ae6ece39c8593674566",
"canUsePages": true
}
}
4 changes: 2 additions & 2 deletions studio/helpers.cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ export class PublisherModel extends ViewModel {
bindings: {
get () {
return [
{ model: 'close button', signal: 'fire', handler: 'close' },
{ model: 'report button', signal: 'fire', handler: 'publishDashboard' }
{ target: 'close button', signal: 'fire', handler: 'close' },
{ target: 'report button', signal: 'fire', handler: 'publishDashboard' }
];
}
}
Expand Down
8 changes: 5 additions & 3 deletions studio/top-bar.cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { signal, connect } from 'lively.bindings/index.js';
import { galyleoFont } from './shared.cp.js';
import { projectAsset } from 'lively.project/helpers.js';
import { part } from 'lively.morphic';
import { BugReporter, Publisher } from './helpers.cp.js';

export default class DashboardUserFlap extends UserFlap {
onLoad () {
Expand Down Expand Up @@ -124,15 +125,16 @@ class GalyleoTopBarModel extends TopBarModel {
if (evt.targetMorph.name === 'load world button') {
$world.execCommand('load world');
}

}

reportBug () {
signal(this, 'initiate bug report');
// signal(this, 'initiate bug report');
part(BugReporter).openInWorld();
}

publishDashboard () {
signal(this, 'initiate publication');
part(Publisher).openInWorld();
// signal(this, 'initiate publication');
// window.alert('publish requested');
}
}
Expand Down

0 comments on commit 4b53c78

Please sign in to comment.