ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject ambari git commit: AMBARI-8757. Redundant "Members" column's value for group without members (onechiporenko)
Date Wed, 17 Dec 2014 16:03:56 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 1c79b8126 -> 97115a760


AMBARI-8757. Redundant "Members" column's value for group without members (onechiporenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/97115a76
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/97115a76
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/97115a76

Branch: refs/heads/trunk
Commit: 97115a760f43f3b0c2d75cd71a6837434971c250
Parents: 1c79b81
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Wed Dec 17 17:30:43 2014 +0200
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Wed Dec 17 17:30:43 2014 +0200

----------------------------------------------------------------------
 .../src/main/resources/ui/admin-web/app/views/groups/list.html     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/97115a76/ambari-admin/src/main/resources/ui/admin-web/app/views/groups/list.html
----------------------------------------------------------------------
diff --git a/ambari-admin/src/main/resources/ui/admin-web/app/views/groups/list.html b/ambari-admin/src/main/resources/ui/admin-web/app/views/groups/list.html
index fefe6fb..ab268d3 100644
--- a/ambari-admin/src/main/resources/ui/admin-web/app/views/groups/list.html
+++ b/ambari-admin/src/main/resources/ui/admin-web/app/views/groups/list.html
@@ -54,7 +54,7 @@
           <link-to route="groups.edit" class="link-to-group" id="{{group.group_name}}">{{group.group_name}}</link-to>
         </td>
         <td class="col-sm-2">{{group.ldap_group ? 'LDAP' : 'Local'}}</td>
-        <td class="col-sm-2">{{group.members.length}} {{group.members.length === 1
? 'member' : 'members'}}</td>
+        <td class="col-sm-2">{{group.members ? group.members.length : 0}} {{group.members.length
=== 1 ? 'member' : 'members'}}</td>
       </tr>
     </tbody>
   </table>


Mime
View raw message