Return-Path: X-Original-To: apmail-atlas-commits-archive@minotaur.apache.org Delivered-To: apmail-atlas-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8806518F69 for ; Tue, 16 Jun 2015 23:04:50 +0000 (UTC) Received: (qmail 30880 invoked by uid 500); 16 Jun 2015 23:04:50 -0000 Delivered-To: apmail-atlas-commits-archive@atlas.apache.org Received: (qmail 30858 invoked by uid 500); 16 Jun 2015 23:04:50 -0000 Mailing-List: contact commits-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list commits@atlas.incubator.apache.org Received: (qmail 30849 invoked by uid 99); 16 Jun 2015 23:04:50 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2015 23:04:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 089A3182892 for ; Tue, 16 Jun 2015 23:04:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GpdP12BgtLAV for ; Tue, 16 Jun 2015 23:04:40 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id AA211214DE for ; Tue, 16 Jun 2015 23:04:37 +0000 (UTC) Received: (qmail 30421 invoked by uid 99); 16 Jun 2015 23:04:37 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2015 23:04:37 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 24E58E3C48; Tue, 16 Jun 2015 23:04:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: venkatesh@apache.org To: commits@atlas.incubator.apache.org Date: Tue, 16 Jun 2015 23:05:24 -0000 Message-Id: In-Reply-To: <29f8990c10f64784b72a9cafbbc9676e@git.apache.org> References: <29f8990c10f64784b72a9cafbbc9676e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [50/58] [abbrv] incubator-atlas git commit: HDPDGI-76:Baban:Hide tabs other than details is not Table HDPDGI-76:Baban:Hide tabs other than details is not Table Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/d54a5981 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/d54a5981 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/d54a5981 Branch: refs/heads/master Commit: d54a5981f6bb40cc992ec71b52f841621e26c5c2 Parents: 0e18270 Author: Vishal Kadam Authored: Tue Jun 16 00:02:19 2015 -0400 Committer: Vishal Kadam Committed: Tue Jun 16 00:08:08 2015 -0400 ---------------------------------------------------------------------- dashboard/v2/bower.json | 1 - dashboard/v2/public/modules/details/detailsController.js | 8 ++++---- dashboard/v2/public/modules/details/views/details.html | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/d54a5981/dashboard/v2/bower.json ---------------------------------------------------------------------- diff --git a/dashboard/v2/bower.json b/dashboard/v2/bower.json index 711be46..581f682 100755 --- a/dashboard/v2/bower.json +++ b/dashboard/v2/bower.json @@ -1,4 +1,3 @@ - { "name": "dgc-metadata", "description": "Apache Atlas", http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/d54a5981/dashboard/v2/public/modules/details/detailsController.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/details/detailsController.js b/dashboard/v2/public/modules/details/detailsController.js index b5550a3..0e96d42 100644 --- a/dashboard/v2/public/modules/details/detailsController.js +++ b/dashboard/v2/public/modules/details/detailsController.js @@ -22,19 +22,19 @@ angular.module('dgc.details').controller('DetailsController', ['$window', '$scop function($window, $scope, $stateParams, DetailsResource) { $scope.tableName = false; + $scope.isTable = false; + DetailsResource.get({ id: $stateParams.id }, function(data) { $scope.details = data; + $scope.schemas = data; $scope.tableName = data.values.name; + $scope.isTable = data.typeName === 'Table'; }); $scope.isString = angular.isString; - $scope.schemas = DetailsResource.get({ - id: $stateParams.id - }); - $scope.onActivate = function tabActivate(tabname) { $scope.$broadcast('render-lineage', { type: tabname, http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/d54a5981/dashboard/v2/public/modules/details/views/details.html ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/details/views/details.html b/dashboard/v2/public/modules/details/views/details.html index 5e3cae5..19f0ce0 100644 --- a/dashboard/v2/public/modules/details/views/details.html +++ b/dashboard/v2/public/modules/details/views/details.html @@ -41,9 +41,9 @@ - - - + + +