Commit 88e1fcb9 by Daniel Lee

WIP: fixes after version history merge

parent 3913f165
......@@ -127,6 +127,10 @@ export class DashboardCtrl {
$scope.timezoneChanged = function() {
$rootScope.$broadcast("refresh");
};
$scope.onFolderChange = function(parentId) {
$scope.dashboard.parentId = parentId;
};
}
init(dashboard) {
......
......@@ -65,6 +65,7 @@ export class DashboardModel {
this.version = data.version || 0;
this.links = data.links || [];
this.gnetId = data.gnetId || null;
this.parentId = data.parentId || null;
this.rows = [];
if (data.rows) {
......
......@@ -45,7 +45,7 @@
</div>
</div>
<folder-picker ng-if="!dashboardMeta.isFolder" selected-folder="dashboard.meta.parentId" on-change="onFolderChange"></folder-picker>
<folder-picker ng-if="!dashboardMeta.isFolder" selected-folder="dashboardMeta.parentId" on-change="onFolderChange"></folder-picker>
</div>
<div class="section">
......
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