apache / couchdb-fauxton

Fauxton is the new Web UI for CouchDB
https://github.com/apache/couchdb-fauxton
Apache License 2.0
373 stars 225 forks source link

Allow hiding columns in active tasks page #1426

Closed Antonio-Maranhao closed 5 months ago

Antonio-Maranhao commented 5 months ago

Overview

Adds the ability for setting a list of hidden columns for the Active Tasks. It is not enabled by default as it is intended to be used by applications that extend Fauxton.

Testing recommendations

It's not enabled by default but you can modify one of the initialize() functions to set the hidden columns. Here's an example using the news addon:

News.initialize = function () {
  FauxtonAPI.addHeaderLink({
    id: 'News',
    title: 'News',
    icon: 'fonticon-clipboard',
    href: '#/news',
    bottomNav: true,
    top: true
  });
  // it hides the pid column
  FauxtonAPI.reduxDispatch({
    type: ActionTypes.ACTIVE_TASKS_SET_HIDDEN_COLUMNS,
    options: ['pid'],
  });
};

GitHub issue number

n/a

Related Pull Requests

n/a

Checklist