Temporarily disabling some Find Bar functionalities
This commit is contained in:
parent
21073f3f15
commit
db58c1216b
@ -60,7 +60,7 @@
|
||||
|
||||
.suggestions {
|
||||
display: table-cell;
|
||||
width: 50%;
|
||||
width: 100%;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
|
@ -326,9 +326,6 @@ class FindBar extends Component {
|
||||
<div className={styles.suggestions}>
|
||||
{commands}
|
||||
</div>
|
||||
<div className={styles.history}>
|
||||
Your past searches and commands
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -106,14 +106,14 @@ class App extends React.Component {
|
||||
|
||||
if (defaultCommands.length < 5) defaultCommands.push(`show_${ collection.get('name') }`);
|
||||
|
||||
if (collection.get('create') === true) {
|
||||
commands.push({
|
||||
id: `create_${ collection.get('name') }`,
|
||||
pattern: `Create new ${ pluralize(collection.get('label'), 1) }(:itemName as ${ pluralize(collection.get('label'), 1) } Name)`,
|
||||
type: CREATE_COLLECTION,
|
||||
payload: { collectionName: collection.get('name') },
|
||||
});
|
||||
}
|
||||
// if (collection.get('create') === true) {
|
||||
// commands.push({
|
||||
// id: `create_${ collection.get('name') }`,
|
||||
// pattern: `Create new ${ pluralize(collection.get('label'), 1) }(:itemName as ${ pluralize(collection.get('label'), 1) } Name)`,
|
||||
// type: CREATE_COLLECTION,
|
||||
// payload: { collectionName: collection.get('name') },
|
||||
// });
|
||||
// }
|
||||
});
|
||||
|
||||
commands.push({ id: HELP, type: HELP, pattern: 'Help' });
|
||||
|
Loading…
x
Reference in New Issue
Block a user