Skip to content

Commit

Permalink
Add hideCswContentWithoutService prop
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Jan 30, 2025
1 parent 4a23f8a commit 5829bcc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/js/apps/sample/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
],
"pagination": {
"rowsPerPage": 25
}
},
"hideCswContentWithoutService": false
}
},
"banner": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,11 @@ export default class PortalItemLoaderWidgetController {
type = "WFS";
}
if (!type) {
return;
if (model.hideCswContentWithoutService) {
return;
} else {
type = this.i18n.noService;
}
}
let url = esriUrl || wmsUrl || wfsUrl;
if (url) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ interface PortalItemLoaderModelProps {
showSortBy: boolean,
showTypeFilter: boolean,
showItemThumbnail: boolean,
isMobile: boolean
isMobile: boolean,
hideCswContentWithoutService: boolean
}

export default defineProperties<PortalItemLoaderModel, PortalItemLoaderModelProps>(PortalItemLoaderModel, {
Expand Down Expand Up @@ -83,5 +84,6 @@ export default defineProperties<PortalItemLoaderModel, PortalItemLoaderModelProp
showSortBy: true,
showTypeFilter: true,
showItemThumbnail: true,
isMobile: false
isMobile: false,
hideCswContentWithoutService: true
});
3 changes: 2 additions & 1 deletion src/main/js/bundles/dn_portalitemloader/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@
}
],
"rootId": "my_services",
"rootTitle": "${ui.myServicesTitle}"
"rootTitle": "${ui.myServicesTitle}",
"hideCswContentWithoutService": false
}
},
{
Expand Down

0 comments on commit 5829bcc

Please sign in to comment.