diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/computation/router.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/computation/router.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/server/sonar-web/src/main/js/apps/computation/router.js b/server/sonar-web/src/main/js/apps/computation/router.js index 6d874801cd3..8ac31c7be90 100644 --- a/server/sonar-web/src/main/js/apps/computation/router.js +++ b/server/sonar-web/src/main/js/apps/computation/router.js @@ -1,29 +1,29 @@ -define(function () { +import Backbone from 'backbone'; - return Backbone.Router.extend({ - routes: { - '': 'index', - 'index': 'index', - 'current': 'current', - 'past': 'past' - }, +export default Backbone.Router.extend({ + routes: { + '': 'index', + 'index': 'index', + 'current': 'current', + 'past': 'past' + }, - initialize: function (options) { - this.options = options; - }, + initialize: function (options) { + this.options = options; + }, - index: function () { - this.navigate('current'); - this.current(); - }, + index: function () { + this.navigate('current'); + this.current(); + }, - current: function () { - this.options.reports.fetch({ q: 'queue' }); - }, - - past: function () { - this.options.reports.fetch({ q: 'history' }); - } - }); + current: function () { + this.options.reports.fetch({ q: 'queue' }); + }, + past: function () { + this.options.reports.fetch({ q: 'history' }); + } }); + + |