Don't render both lists at once, and remember which list was selected (just like before). Some refactoring here would be nice.

This commit is contained in:
Simo Kinnunen
2014-07-02 20:02:12 +09:00
parent 46baaf4fe0
commit 714867de59
4 changed files with 12 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ module.exports = function DeviceListEmptyDirective() {
, link: function (scope) {
var tracker = scope.tracker()
scope.empty = true
scope.empty = !tracker.devices.length
function update() {
var oldEmpty = scope.empty