aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/workspace-home-view.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-09-17 16:15:28 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-09-18 10:47:27 +0200
commit890ab0b59cdb3902f4869eabf8ca534814f1b3dd (patch)
tree0ed74726957e590f6506e378366ea15bf21bfcbd /server/sonar-web/src/main/js/apps/issues/workspace-home-view.js
parentce60ac8d2e137f33bb111668e54e78c195c73d79 (diff)
downloadsonarqube-890ab0b59cdb3902f4869eabf8ca534814f1b3dd.tar.gz
sonarqube-890ab0b59cdb3902f4869eabf8ca534814f1b3dd.zip
migrate js apps to es2015 modules
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/workspace-home-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/workspace-home-view.js19
1 files changed, 9 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/workspace-home-view.js b/server/sonar-web/src/main/js/apps/issues/workspace-home-view.js
index aff1c52366f..44efc574890 100644
--- a/server/sonar-web/src/main/js/apps/issues/workspace-home-view.js
+++ b/server/sonar-web/src/main/js/apps/issues/workspace-home-view.js
@@ -1,13 +1,12 @@
-define([
- './templates'
-], function () {
+import Marionette from 'backbone.marionette';
+import './templates';
- Handlebars.registerHelper('issueFilterHomeLink', function (id) {
- return baseUrl + '/issues/search#id=' + id;
- });
-
- return Marionette.ItemView.extend({
- template: Templates['issues-workspace-home']
- });
+Handlebars.registerHelper('issueFilterHomeLink', function (id) {
+ return baseUrl + '/issues/search#id=' + id;
+});
+export default Marionette.ItemView.extend({
+ template: Templates['issues-workspace-home']
});
+
+