Add clear search button in shop searchbar

This commit is contained in:
Matt-Yorkley
2020-04-21 14:00:27 +02:00
parent ff69389bb0
commit 026b98022c
4 changed files with 24 additions and 5 deletions

View File

@@ -84,9 +84,12 @@ Darkswarm.controller "ProductsCtrl", ($scope, $filter, $rootScope, Products, Ord
).join(" #{t('products_or')} ") if $scope.activeProperties?
$scope.clearAll = ->
$scope.query = ""
$scope.clearQuery()
$scope.clearFilters()
$scope.clearQuery = ->
$scope.query = ""
$scope.clearFilters = ->
$scope.taxonSelectors.clearAll()
$scope.propertySelectors.clearAll()