Commit 4360b1a5 authored by Evren Kutar's avatar Evren Kutar

menu urls fixed for wf and model to create them

parent 431e57a1
...@@ -248,14 +248,6 @@ app.directive('logout', function ($http, $location, RESTURL) { ...@@ -248,14 +248,6 @@ app.directive('logout', function ($http, $location, RESTURL) {
angular.forEach(items, function (value, key) { angular.forEach(items, function (value, key) {
newItems[value.kategori] = newItems[value.kategori] || []; newItems[value.kategori] = newItems[value.kategori] || [];
value['baseCategory'] = baseCategory; value['baseCategory'] = baseCategory;
// todo: generate urls here
//value['url'] = '#/wf' + value.wf;
//if (value.model) {
// value['url'] += '/model/' + value.model;
//}
value['wf'] = value.url.split('/')[0];
value['model'] = value.url.split('/')[1];
newItems[value.kategori].push(value); newItems[value.kategori].push(value);
}); });
return newItems; return newItems;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment