Skip to content

Commit

Permalink
merge: hotfixes-9.8.0 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Jan 23, 2025
2 parents 2cbcc4e + 3a0a69b commit e8e9ea8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## [Unreleased]

## [9.8.1] - 2025-01-23

### Fixed

- Assignment typo in if condition causes error when aborting statistics request [#425](https://github.com/spraakbanken/korp-frontend/issues/425)
- Simple search options were not properly synced from URL params

## [9.8.0] - 2025-01-20

### Added
Expand Down Expand Up @@ -336,6 +343,7 @@
- Lots of bug fixes for the sidebar

[unreleased]: https://github.com/spraakbanken/korp-frontend/compare/master...dev
[9.8.1]: https://github.com/spraakbanken/korp-frontend/releases/tag/v9.8.1
[9.8.0]: https://github.com/spraakbanken/korp-frontend/releases/tag/v9.8.0
[9.7.2]: https://github.com/spraakbanken/korp-frontend/releases/tag/v9.7.2
[9.7.1]: https://github.com/spraakbanken/korp-frontend/releases/tag/v9.7.1
Expand Down
2 changes: 1 addition & 1 deletion app/markup/about.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="modal-header">
<h2>Korp version 9.8.0</h2>
<h2>Korp version 9.8.1</h2>
<span ng-click="clickX()" class="close-x">×</span>

</div>
Expand Down
20 changes: 9 additions & 11 deletions app/scripts/components/simple-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,17 +306,15 @@ angular.module("korpApp").component("simpleSearch", {
}
})

// Reach to changes in URL params
$scope.$watch(
() => $location.search(),
(search) => {
ctrl.freeOrder = search.in_order != null
ctrl.prefix = search.prefix != null
ctrl.mid_comp = search.mid_comp != null
ctrl.suffix = search.suffix != null
ctrl.isCaseInsensitive = search.isCaseInsensitive != null
}
)
// React to changes in URL params
$scope.$on("$locationChangeSuccess", () => {
const search = $location.search()
ctrl.freeOrder = search.in_order != null
ctrl.prefix = search.prefix != null
ctrl.mid_comp = search.mid_comp != null
ctrl.suffix = search.suffix != null
ctrl.isCaseInsensitive = search.isCaseInsensitive != null
})

ctrl.onChange = (value, isPlain) => {
ctrl.currentText = isPlain ? value : undefined
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/statistics_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ angular.module("korpApp").directive("statsResultCtrl", () => ({
)
.catch((error) => {
// AbortError is expected if a new search is made before the previous one is finished
if ((error.name = "AbortError")) return
if (error.name == "AbortError") return
console.error(error)
// TODO Show error
$timeout(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "korp-frontend",
"version": "9.8.0",
"version": "9.8.1",
"dependencies": {
"@fontsource/source-sans-pro": "^5.1.0",
"@fortawesome/fontawesome-free": "6.2.1",
Expand Down

0 comments on commit e8e9ea8

Please sign in to comment.