couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garrensmith <...@git.apache.org>
Subject [GitHub] couchdb-fauxton pull request: Databases view in react
Date Tue, 21 Apr 2015 10:04:08 GMT
Github user garrensmith commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/370#discussion_r28764806
  
    --- Diff: app/addons/databases/routes.js ---
    @@ -46,43 +41,37 @@ function (app, FauxtonAPI, Databases, Views, Components) {
           this.databases = new Databases.List();
         },
     
    -    allDatabases: function () {
    -      var params = app.getParams(),
    -          dbPage = params.page ? parseInt(params.page, 10) : 1,
    -          perPage = FauxtonAPI.constants.MISC.DEFAULT_PAGE_SIZE,
    -          pagination;
    -
    -      pagination = new Components.Pagination({
    -        page: dbPage,
    -        perPage: perPage,
    -        collection: this.databases,
    -        urlFun: function (page) {
    -          return '#/_all_dbs?page=' + page;
    -        }
    -      });
    -
    -      this.footer = this.setView('#footer', new Views.Footer());
    -      this.setView('#database-pagination', pagination);
    -
    -      this.databasesView = this.setView("#dashboard-content", new Views.List({
    -        collection: this.databases,
    -        perPage: perPage,
    -        page: dbPage
    -      }));
    -
    -      this.rightHeader = this.setView("#right-header", new Views.RightAllDBsHeader({
    -        collection: this.databases,
    -      }));
    +    paginated: function () {
    --- End diff --
    
    I think this paginated could go into the collection.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message