diff --git a/src/datasource/components/QueryEditor/ProblemsQueryEditor.tsx b/src/datasource/components/QueryEditor/ProblemsQueryEditor.tsx index 1a2c2ec..a7c4a56 100644 --- a/src/datasource/components/QueryEditor/ProblemsQueryEditor.tsx +++ b/src/datasource/components/QueryEditor/ProblemsQueryEditor.tsx @@ -154,6 +154,8 @@ export const ProblemsQueryEditor = ({ query, datasource, onChange }: Props) => { } }; + const supportsApplications = datasource.zabbix.supportsApplications(); + return ( <> @@ -186,15 +188,17 @@ export const ProblemsQueryEditor = ({ query, datasource, onChange }: Props) => { - - - + {supportsApplications && ( + + + + )} { { )} - {(supportsApplications || query.countTriggersBy !== 'items') && ( + {supportsApplications && ( { onBlur={onTextFilterChange('trigger')} /> - - - )} {query.countTriggersBy === 'items' && ( @@ -313,6 +305,16 @@ export const TriggersQueryEditor = ({ query, datasource, onChange }: Props) => { /> )} + {!supportsApplications && ( + + + + )}