@@ -17,6 +21,7 @@
};
self.storageUsageHistoryData = null;
self.storageUsageChart = null;
+ self.lastSnapshotDate = null;
self.one("mount", function () {
self.state.startDate = opts.start_date;
@@ -121,8 +126,10 @@
};
CODALAB.api.get_storage_usage_history(parameters)
.done(function(data) {
- self.storageUsageHistoryData = data;
- self.update_storage_usage_history_chart(data);
+ self.storageUsageHistoryData = data["storage_usage_history"];
+ self.lastSnapshotDate = data["last_storage_calculation_date"];
+ self.update({lastSnapshotDate: data["last_storage_calculation_date"]});
+ self.update_storage_usage_history_chart(data["storage_usage_history"]);
})
.fail(function(error) {
toastr.error("Could not load storage analytics data");
@@ -177,5 +184,10 @@
.chart-container {
min-height: 450px;
}
+
+ .flex-row {
+ display: flex;
+ flex-direction: row;
+ }
\ No newline at end of file
diff --git a/src/static/riot/analytics/_users_usage.tag b/src/static/riot/analytics/_users_usage.tag
index 5aff49e28..b83a8a52c 100644
--- a/src/static/riot/analytics/_users_usage.tag
+++ b/src/static/riot/analytics/_users_usage.tag
@@ -1,15 +1,18 @@
-
-
-