Skip to content

Commit

Permalink
remove notifications integration from details pages and update snapsh…
Browse files Browse the repository at this point in the history
…ots (#210)

Signed-off-by: David Cui <[email protected]>
  • Loading branch information
davidcui1225 authored Nov 2, 2021
1 parent 677fbab commit c7b1c11
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 623 deletions.
13 changes: 0 additions & 13 deletions dashboards-reports/public/components/main/main_utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,6 @@ import { i18n } from '@osd/i18n';
import { HttpFetchOptions, HttpSetup } from '../../../../../src/core/public';
import { uiSettingsService } from '../utils/settings_service';

export const displayDeliveryChannels = (configIds: Array<string>, channels: Array<{label: string, id: string}>) => {
let displayChannels = [];
for (let i = 0; i < configIds.length; ++i) {
for (let j = 0; j < channels.length; ++j) {
if (configIds[i] === channels[j].id) {
displayChannels.push(channels[j].label);
break;
}
}
}
return displayChannels.toString();
}

export const getAvailableNotificationsChannels = (configList: any) => {
let availableChannels = [];
for (let i = 0; i < configList.length; ++i) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,85 +382,6 @@ exports[`<ReportDefinitionDetails /> panel render 5 hours recurring definition d
</dl>
</div>
</div>
<div
class="euiSpacer euiSpacer--l"
/>
<h3
class="euiTitle euiTitle--medium"
>
Notification settings
</h3>
<div
class="euiSpacer euiSpacer--l"
/>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Config IDs
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Title
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Text description
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Html description
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
</div>
</div>
<div
aria-live="polite"
Expand Down Expand Up @@ -853,85 +774,6 @@ exports[`<ReportDefinitionDetails /> panel render disabled daily definition, cli
</dl>
</div>
</div>
<div
class="euiSpacer euiSpacer--l"
/>
<h3
class="euiTitle euiTitle--medium"
>
Notification settings
</h3>
<div
class="euiSpacer euiSpacer--l"
/>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Config IDs
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Title
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Text description
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Html description
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
</div>
</div>
<div
aria-live="polite"
Expand Down Expand Up @@ -1320,85 +1162,6 @@ exports[`<ReportDefinitionDetails /> panel render on demand definition details 1
</dl>
</div>
</div>
<div
class="euiSpacer euiSpacer--l"
/>
<h3
class="euiTitle euiTitle--medium"
>
Notification settings
</h3>
<div
class="euiSpacer euiSpacer--l"
/>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Config IDs
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Title
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Text description
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
<div
class="euiFlexItem"
>
<dl
class="euiDescriptionList euiDescriptionList--row"
>
<dt
class="euiDescriptionList__title"
>
Html description
</dt>
<dd
class="euiDescriptionList__description"
/>
</dl>
</div>
</div>
</div>
<div
aria-live="polite"
Expand Down
Loading

0 comments on commit c7b1c11

Please sign in to comment.