Skip to content

Commit

Permalink
Add suppress images option to config tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Georges-GNM committed Sep 19, 2024
1 parent 698e5f1 commit ceb1f01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions fronts-client/src/types/FaciaApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ interface CollectionConfigResponse {
frontsToolSettings?: FrontsToolSettings;
prefill?: EditionsPrefill;
targetedTerritory?: string;
suppressImages?: boolean;
}

interface FrontsConfigResponse {
Expand Down
3 changes: 2 additions & 1 deletion public/src/js/models/config/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default class ConfigCollection extends DropTarget {
'platform',
'frontsToolSettings',
'userVisibility',
'targetedTerritory'
'targetedTerritory',
'suppressImages'
]),
{
displayHints: asObservableProps([
Expand Down
5 changes: 5 additions & 0 deletions public/src/js/widgets/columns/fronts-config.html
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@
<label for="frontsToolSettings.displayEditWarning">Display edit warning</label>
<input id="hideShowMore" type="checkbox" data-bind="checked: meta.frontsToolSettings.displayEditWarning" />

<!-- ko if: meta.type() === 'scrollable/small' -->
<label for="suppressImages">Suppress images</label>
<input id="suppressImages" type="checkbox" data-bind="checked: meta.suppressImages" />
<!-- /ko -->

<div class="platform-edit">
<span>Platform: </span><span data-bind="text: getPlatform()"></span>
<!-- ko if: !thisIsPlatformSpecificCollection && parents().length <= 1 -->
Expand Down

0 comments on commit ceb1f01

Please sign in to comment.