From 16eb53dbe0d460aea83ccca3b14339320f4a6ebe Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Thu, 7 Jul 2016 23:02:40 -0700 Subject: [PATCH] Rename request in place --- app/components/SidebarRequestGroupRow.js | 14 +++--- app/components/SidebarRequestRow.js | 20 +++++--- app/components/base/Editable.js | 63 ++++++++++++++++++++++++ app/css/components/forms.scss | 1 + app/css/components/sidebar.scss | 10 +++- 5 files changed, 93 insertions(+), 15 deletions(-) create mode 100644 app/components/base/Editable.js diff --git a/app/components/SidebarRequestGroupRow.js b/app/components/SidebarRequestGroupRow.js index 90bf852bc..7c0e8a9ae 100644 --- a/app/components/SidebarRequestGroupRow.js +++ b/app/components/SidebarRequestGroupRow.js @@ -1,14 +1,16 @@ import React, {PropTypes} from 'react' import classnames from 'classnames' + import RequestGroupActionsDropdown from './../containers/RequestGroupActionsDropdown' import SidebarRequestRow from './SidebarRequestRow' +import * as db from '../database' const SidebarRequestGroupRow = ({ children, requestGroup, isActive, toggleRequestGroup, - addRequestToRequestGroup + addRequestToRequestGroup, }) => { let folderIconClass = 'fa-folder'; let expanded = !requestGroup.collapsed; @@ -20,10 +22,11 @@ const SidebarRequestGroupRow = ({ className={classnames('sidebar__row', {active: isActive})}>
- -
@@ -35,7 +38,6 @@ const SidebarRequestGroupRow = ({ right={true} />
-