Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* WiP reorganizing the list of reference streams

* Reorganize reference stream dropdown, add provider and sort by use case
  • Loading branch information
dsilhavy committed Jul 15, 2020
1 parent 880d183 commit 9dd6a3e
Show file tree
Hide file tree
Showing 2 changed files with 1,066 additions and 954 deletions.
12 changes: 12 additions & 0 deletions samples/dash-if-reference-player/app/main.js
Expand Up @@ -57,6 +57,18 @@ app.controller('DashController', function ($scope, sources, contributors, dashif
submenu: data.items
});
});

// Add provider to beginning of each Vector
var provider = data.provider;
$scope.availableStreams.forEach(function (item) {
if(item && item.submenu && item.submenu.length > 0) {
item.submenu.forEach(function (subitem) {
if(subitem && subitem.name && subitem.provider && provider[subitem.provider] && provider[subitem.provider].acronym) {
subitem.name = '[' + provider[subitem.provider].acronym + '] ' + subitem.name;
}
});
}
});
});

contributors.query(function (data) {
Expand Down

0 comments on commit 9dd6a3e

Please sign in to comment.