Skip to content

Commit

Permalink
remove asterisk, show all components on empty filter bar
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmarlow authored and mgmarlow committed Nov 22, 2017
1 parent ece882d commit 51680fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/app/app.component.ts
Expand Up @@ -239,10 +239,6 @@ export class AppComponent {

private filterSandboxes(sandboxMenuItems: SandboxMenuItem[], filter: string) {
if (!filter) {
return [];
}

if (filter === '*') {
return sandboxMenuItems.map((item, i) => Object.assign({}, item, { tabIndex: i }));
}

Expand Down
3 changes: 1 addition & 2 deletions src/app/shared/state.service.ts
Expand Up @@ -14,8 +14,7 @@ export class StateService {
}

getFilter() {
// Asterisk to list all results by default
return this.filter ? this.filter : '*';
return this.filter;
}

setFilter(value: string) {
Expand Down

0 comments on commit 51680fd

Please sign in to comment.