Temporarily disabling some Find Bar functionalities

This commit is contained in:
Cássio Zen 2016-12-02 19:25:38 -02:00
parent 21073f3f15
commit db58c1216b
3 changed files with 9 additions and 12 deletions

View File

@ -60,7 +60,7 @@
.suggestions { .suggestions {
display: table-cell; display: table-cell;
width: 50%; width: 100%;
padding-right: 10px; padding-right: 10px;
} }

View File

@ -326,9 +326,6 @@ class FindBar extends Component {
<div className={styles.suggestions}> <div className={styles.suggestions}>
{commands} {commands}
</div> </div>
<div className={styles.history}>
Your past searches and commands
</div>
</div> </div>
); );
} }

View File

@ -106,14 +106,14 @@ class App extends React.Component {
if (defaultCommands.length < 5) defaultCommands.push(`show_${ collection.get('name') }`); if (defaultCommands.length < 5) defaultCommands.push(`show_${ collection.get('name') }`);
if (collection.get('create') === true) { // if (collection.get('create') === true) {
commands.push({ // commands.push({
id: `create_${ collection.get('name') }`, // id: `create_${ collection.get('name') }`,
pattern: `Create new ${ pluralize(collection.get('label'), 1) }(:itemName as ${ pluralize(collection.get('label'), 1) } Name)`, // pattern: `Create new ${ pluralize(collection.get('label'), 1) }(:itemName as ${ pluralize(collection.get('label'), 1) } Name)`,
type: CREATE_COLLECTION, // type: CREATE_COLLECTION,
payload: { collectionName: collection.get('name') }, // payload: { collectionName: collection.get('name') },
}); // });
} // }
}); });
commands.push({ id: HELP, type: HELP, pattern: 'Help' }); commands.push({ id: HELP, type: HELP, pattern: 'Help' });