Github user robertkowalski commented on a diff in the pull request:

    https://github.com/apache/couchdb/pull/203#discussion_r11653349
  
    --- Diff: src/fauxton/app/addons/activetasks/routes.js ---
    @@ -19,36 +19,37 @@ define([
     
     function (app, FauxtonAPI, Activetasks, Views) {
     
    -  var  ActiveTasksRouteObject = FauxtonAPI.RouteObject.extend({
    +  var ActiveTasksRouteObject = FauxtonAPI.RouteObject.extend({
         layout: "with_sidebar",
    +
         routes: {
           "activetasks/:id": "defaultView",
           "activetasks": "defaultView"
         },
    +
         selectedHeader: 'Active Tasks',
    +
         crumbs: [
    -    {"name": "Active tasks", "link": "activetasks"}
    +      {"name": "Active tasks", "link": "activetasks"}
         ],
    -    apiUrl: function(){
    -      return [this.newtasks.url("apiurl"), this.newtasks.documentation];
    -    }, 
    +
    +    apiUrl: function () {
    +      return [this.allTasks.url("apiurl"), this.allTasks.documentation];
    +    },
     
         roles: ["_admin"],
     
    -    defaultView: function(id){
    -     this.newtasks = new Activetasks.Tasks({
    -        currentView: "all", 
    -        id:'activeTasks'
    -      });
    -      this.setView("#sidebar-content", new Views.TabMenu({
    -        currentView: "all",
    -        model: this.newtasks
    -      })); 
    -
    -      this.setView("#dashboard-content", new Views.DataSection({
    -        model: this.newtasks,
    +    initialize: function () {
    +      this.allTasks = new Activetasks.AllTasks({currentView: "all"});
    --- End diff --
    
    `{currentView: "all"}` i do not need that.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to