Skip to content

Commit

Permalink
Map / WPS / Add message for no recent process. (#8091)
Browse files Browse the repository at this point in the history
Follow up of #7842

Also fix wps type for URL tab.
  • Loading branch information
fxprunayre authored Jun 3, 2024
1 parent 3b592a1 commit 04463a2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,8 @@
// On CORS error, status is -1.
// Check client side if the URI is too large according to default Apache LimitRequestFieldSize
// and switch to POST in this case.
var uriTooLarge = (r.status === undefined || r.status === -1) && src.length >= 8190;
var uriTooLarge =
(r.status === undefined || r.status === -1) && src.length >= 8190;

if (r.status === 414 || uriTooLarge) {
// Request URI too large, try POST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@
}
])


.directive("hitsperpageCombo", [
function () {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@

// handle processes tool
if (scope.activeTools.processes && openedTool.url) {
scope.wpsTabs.byUrl = true;
scope.wpsTabs.url = true;
scope.selectedWps.url = openedTool.url;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<span translate>localStorageNotSupported</span>
</div>

<div class="alert alert-danger" role="alert" ng-show="processes.length === 0">
<span translate>noRecentProcessFound</span>
</div>

<ul class="list-group processes-list">
<a
href
Expand Down
2 changes: 2 additions & 0 deletions web-ui/src/main/resources/catalog/locales/en-search.json
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,8 @@
"clickToSelect": "Click to select or unselect",
"filterDataDescription": "Select a layer on the map to begin filtering associated WFS features (if any). Features must first have been indexed by an administrator.",
"WPSDescription": "Enter a WPS endpoint URL to begin using the process through a dynamic form. Recently used WPS processes are shown in the second tab.",
"noRecentProcessFound": "No process used recently.",
"localStorageNotSupported": "Browser local storage not supported",
"wpsProcesslist": "Processing services",
"wpsProcessurl": "By URL",
"wpsProcessrecent": "Recent services",
Expand Down

0 comments on commit 04463a2

Please sign in to comment.