Access History and Active Sessions are now lazy-loaded upon opening instead of loaded at start; added loading screens to Access History and Active Sessions

Этот коммит содержится в:
Reed Garmsen
2015-07-28 09:28:00 -07:00
родитель 2602f3b49e
Коммит 8c14a16d01
3 изменённых файлов: 30 добавлений и 7 удалений

Просмотреть файл

@@ -164,13 +164,13 @@ var UserStore = assign({}, EventEmitter.prototype, {
BrowserStore.setItem("sessions", sessions);
},
getSessions: function() {
return BrowserStore.getItem("sessions", []);
return BrowserStore.getItem("sessions", {loading: true});
},
setAudits: function(audits) {
BrowserStore.setItem("audits", audits);
},
getAudits: function() {
return BrowserStore.getItem("audits", []);
return BrowserStore.getItem("audits", {loading: true});
},
setTeams: function(teams) {
BrowserStore.setItem("teams", teams);