mango: add edit button PR: #427 PR-URL: https://github.com/apache/couchdb-fauxton/pull/427 Reviewed-By: garren smith <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/404e5481 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/404e5481 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/404e5481 Branch: refs/heads/master Commit: 404e5481a9e17f1f37835e88da55988d7e4cfd89 Parents: bb2ed15 Author: Robert Kowalski <[email protected]> Authored: Wed May 20 12:27:24 2015 +0200 Committer: Robert Kowalski <[email protected]> Committed: Wed May 27 14:09:39 2015 +0200 ---------------------------------------------------------------------- app/addons/documents/assets/less/view-editor.less | 3 +++ app/addons/documents/mango/mango.components.react.jsx | 1 + 2 files changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/404e5481/app/addons/documents/assets/less/view-editor.less ---------------------------------------------------------------------- diff --git a/app/addons/documents/assets/less/view-editor.less b/app/addons/documents/assets/less/view-editor.less index 05f40ba..5872b64 100644 --- a/app/addons/documents/assets/less/view-editor.less +++ b/app/addons/documents/assets/less/view-editor.less @@ -51,6 +51,9 @@ form { padding-bottom: 50px; } + a.edit-link { + float: right; + } } body .view-query-save .control-group { http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/404e5481/app/addons/documents/mango/mango.components.react.jsx ---------------------------------------------------------------------- diff --git a/app/addons/documents/mango/mango.components.react.jsx b/app/addons/documents/mango/mango.components.react.jsx index a47ff12..6dba412 100644 --- a/app/addons/documents/mango/mango.components.react.jsx +++ b/app/addons/documents/mango/mango.components.react.jsx @@ -185,6 +185,7 @@ function (app, FauxtonAPI, React, Stores, Actions, return ( <PaddedBorderedBox> <strong>Your available Indexes:</strong> + <a className="edit-link" href={'#' + FauxtonAPI.urls('mango', 'index-app', this.props.dbName)}>edit</a> <pre className="mango-available-indexes"> {this.getIndexes('index', this.props.availableIndexes)}
