Skip to content
This repository was archived by the owner on Aug 19, 2020. It is now read-only.

Commit d8213ef

Browse files
committed
do not hardcode webpage of vis
1 parent b244688 commit d8213ef

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

  • prototypes/desktop/www/js

prototypes/desktop/www/js/app.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,29 @@ app.config(function($stateProvider, $urlRouterProvider, $compileProvider) {
140140
// url_name is linked to the template being used
141141
console.log("getting vis " + $stateParams.currentVisualUrl + ".html");
142142
//return $http.get("templates/visualizations/" + $stateParams.currentVisualUrl + ".html").then(function(template) {
143-
return $http.get("templates/visualizations/visual-standard.html").then(function(template) {
143+
return $http.get("templates/visualizations/" + $stateParams.currentVisualUrl + ".html").then(function(template) {
144+
console.log("getting vis: " + template.data);
144145
return template.data;
145146
});
146147
},
147148
controller: "visController"
148149
}
149150
}
150-
});
151+
})
152+
153+
// heuristics visual
154+
.state("app.heuristics", {
155+
url:"/{currentPanelUrl}/{currentVisualUrl}/{currentHeuristicUrl}",
156+
views: {
157+
"panel" : {
158+
templateUrl: "templates/visualizations/visualization-standard.html",
159+
controller: "visController"
160+
},
161+
"slide": {
162+
templateUrl: "templates/slide-panel.html"
163+
}
164+
}
165+
})
151166

152167
$urlRouterProvider.otherwise("/login?t=" + themeConfig.ui.start);
153168

0 commit comments

Comments
 (0)