Fix lint errors
This commit is contained in:
@@ -42,7 +42,10 @@ export default class CategoryChipsComponent extends Component {
|
|||||||
class="category-chip"
|
class="category-chip"
|
||||||
{{on "click" (fn this.searchCategory category)}}
|
{{on "click" (fn this.searchCategory category)}}
|
||||||
aria-label={{category.label}}
|
aria-label={{category.label}}
|
||||||
disabled={{and (eq this.mapUi.loadingState.type "category") (eq this.mapUi.loadingState.value category.id)}}
|
disabled={{and
|
||||||
|
(eq this.mapUi.loadingState.type "category")
|
||||||
|
(eq this.mapUi.loadingState.value category.id)
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Icon @name={{category.icon}} @size={{16}} />
|
<Icon @name={{category.icon}} @size={{16}} />
|
||||||
<span>{{category.label}}</span>
|
<span>{{category.label}}</span>
|
||||||
|
|||||||
@@ -217,7 +217,12 @@ export default class SearchBoxComponent extends Component {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<button type="submit" class="search-submit-btn" aria-label="Search">
|
<button type="submit" class="search-submit-btn" aria-label="Search">
|
||||||
{{#if (or (eq this.mapUi.loadingState.type "text") (eq this.mapUi.loadingState.type "category"))}}
|
{{#if
|
||||||
|
(or
|
||||||
|
(eq this.mapUi.loadingState.type "text")
|
||||||
|
(eq this.mapUi.loadingState.type "category")
|
||||||
|
)
|
||||||
|
}}
|
||||||
<Icon @name="loading-ring" @size={{20}} />
|
<Icon @name="loading-ring" @size={{20}} />
|
||||||
{{else}}
|
{{else}}
|
||||||
<Icon @name="search" @size={{20}} @color="#5f6368" />
|
<Icon @name="search" @size={{20}} @color="#5f6368" />
|
||||||
|
|||||||
@@ -79,8 +79,8 @@ export default class PlaceTemplate extends Component {
|
|||||||
if (place === null) {
|
if (place === null) {
|
||||||
// If we have an active search context, return to it (UP navigation)
|
// If we have an active search context, return to it (UP navigation)
|
||||||
if (this.mapUi.returnToSearch && this.mapUi.currentSearch) {
|
if (this.mapUi.returnToSearch && this.mapUi.currentSearch) {
|
||||||
this.router.transitionTo('search', {
|
this.router.transitionTo('search', {
|
||||||
queryParams: this.mapUi.currentSearch
|
queryParams: this.mapUi.currentSearch,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Otherwise just close the sidebar (return to map index)
|
// Otherwise just close the sidebar (return to map index)
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
import { module, test } from 'qunit';
|
import { module, test } from 'qunit';
|
||||||
import {
|
import { visit, click, fillIn, currentURL } from '@ember/test-helpers';
|
||||||
visit,
|
|
||||||
click,
|
|
||||||
fillIn,
|
|
||||||
triggerEvent,
|
|
||||||
currentURL,
|
|
||||||
} from '@ember/test-helpers';
|
|
||||||
import { setupApplicationTest } from 'marco/tests/helpers';
|
import { setupApplicationTest } from 'marco/tests/helpers';
|
||||||
import Service from '@ember/service';
|
import Service from '@ember/service';
|
||||||
import { Promise } from 'rsvp';
|
import { Promise } from 'rsvp';
|
||||||
|
|||||||
Reference in New Issue
Block a user