Refactor per event views into a generic show view event

Bug #1075962 reported by Thiago Veronezi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-gui
Fix Released
Undecided
Thiago Veronezi

Bug Description

Instead of wrapping the 'navigate' method call with multiple 'show' events, we want call the 'navigate' method from a single event.

So, instead of...

this.on('*:showService', this.navigate_to_service);
this.on('*:showUnit', this.navigate_to_unit);
this.on('*:showCharm', this.navigate_to_charm);
this.on('*:showEnvironment', this.navigate_to_environment);

... we will have...

this.on('*:navigateTo', function(e) {
 console.log('navigateTo', e);
 this.navigate(e.url);
}, this);

Related branches

Changed in juju-gui:
assignee: nobody → Thiago Veronezi (tveronezi)
milestone: none → bluemoon
status: New → In Progress
Gary Poster (gary)
Changed in juju-gui:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.