Skip to content

Commit

Permalink
In Superdesk UAT and production, Picture/Video buttons under Orange L…
Browse files Browse the repository at this point in the history
…ogic search filter don't do anything (#327)
  • Loading branch information
dzonidoo authored Oct 10, 2024
1 parent fc3bc92 commit 331bdb7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import {ISearchPanelWidgetProps, ISuperdesk} from 'superdesk-api';
import {CheckboxButton, Spacer} from 'superdesk-ui-framework/react';

type IMediaType = 'Image' | 'Video';

Expand Down Expand Up @@ -51,15 +52,13 @@ export const searchPanelWidgetFactory = (

return (
<fieldset>
<div className="field">
<label className="search-label"></label>
{mediaTypes.map((type) => (
<button key={type.type}
className={'btn btn--primary' + (this.isActive(type.type) ? ' btn--active' : '')}
onClick={() => this.toggleMediaType(type.type)}
>{type.label}</button>
))}
</div>
<div className="field sd-margin-t--2">
<Spacer h gap={'4'}>
{mediaTypes.map((type, i) => (
<CheckboxButton key={i} checked={this.isActive(type.type)} label={{text: type.label}} onChange={() => this.toggleMediaType(type.type)} />
))}
</Spacer>
</div>
<div className="field">
<label className="search-label">{gettext('From')}</label>
<input type="date" value={params.from || ''}
Expand All @@ -76,4 +75,4 @@ export const searchPanelWidgetFactory = (
);
}
};
};
};
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"dependencies": {
"superdesk-analytics": "github:superdesk/superdesk-analytics#v2.8.0",
"superdesk-core": "github:superdesk/superdesk-client-core#release/2.8",
"superdesk-planning": "github:superdesk/superdesk-planning#release/2.8"
"superdesk-planning": "github:superdesk/superdesk-planning#release/2.8",
"superdesk-ui-framework": "^3.1.22"
},
"devDependencies": {
"@superdesk/build-tools": "^1.0.19",
Expand Down

0 comments on commit 331bdb7

Please sign in to comment.