AMBARI-18925 Previous page link enabled on empty table. (atkach)

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

Branch: refs/heads/branch-feature-AMBARI-18456
Commit: e83b06b27933d07998c6f693a94724b272ba7fae
Parents: 945e5d4
Author: Andrii Tkach <[email protected]>
Authored: Thu Nov 17 21:05:51 2016 +0200
Committer: Andrii Tkach <[email protected]>
Committed: Fri Nov 18 11:25:02 2016 +0200

----------------------------------------------------------------------
 ambari-web/app/views/common/table_view.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e83b06b2/ambari-web/app/views/common/table_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/table_view.js 
b/ambari-web/app/views/common/table_view.js
index 7d6419a..9fcefc7 100644
--- a/ambari-web/app/views/common/table_view.js
+++ b/ambari-web/app/views/common/table_view.js
@@ -70,12 +70,12 @@ App.TableView = Em.View.extend(App.UserPref, {
   totalCount: Em.computed.alias('content.length'),
 
   /**
-   * Determines whether cuurent page is the first one
+   * Determines whether current page is the first one
    */
-  isCurrentPageFirst: Em.computed.equal('startIndex', 1),
+  isCurrentPageFirst: Em.computed.lte('startIndex', 1),
 
   /**
-   * Determines whether cuurent page is the last one
+   * Determines whether current page is the last one
    */
   isCurrentPageLast: Em.computed.equalProperties('endIndex', 'filteredCount'),
 

Reply via email to