KYLIN-1203 refresh model timestamp at frontend after backend updated
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/a1c940dd Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/a1c940dd Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/a1c940dd Branch: refs/heads/master Commit: a1c940dd5cffd007d62c71e3700ac71df6845973 Parents: 9ad77cc Author: jian <jiazh...@apache.org> Authored: Tue Dec 8 15:12:55 2015 +0800 Committer: jian <jiazh...@apache.org> Committed: Tue Dec 8 15:12:55 2015 +0800 ---------------------------------------------------------------------- webapp/app/js/controllers/cubeEdit.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/a1c940dd/webapp/app/js/controllers/cubeEdit.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/controllers/cubeEdit.js b/webapp/app/js/controllers/cubeEdit.js index 2dade99..1178bee 100755 --- a/webapp/app/js/controllers/cubeEdit.js +++ b/webapp/app/js/controllers/cubeEdit.js @@ -289,6 +289,18 @@ KylinApp.controller('CubeEditCtrl', function ($scope, $q, $routeParams, $locatio if ($scope.metaModel.model && ($scope.metaModel.model.partition_desc.partition_date_start || $scope.metaModel.model.partition_desc.partition_date_start == 0)) { $scope.metaModel.model.partition_desc.partition_date_start += new Date().getTimezoneOffset() * 60000; } + + //update model last modified + $scope.statusRefresh(); + } + + $scope.statusRefresh = function(){ + ModelService.get({model_name: $scope.cubeMetaFrame.model_name}, function (model) { + if (model) { + //MetaModel.setMetaModel(model); + $scope.metaModel.model.last_modified = model.last_modified; + } + }); } $scope.updateMandatory = function (rowkey_column) {