feat: add force option to report screenshots (#17853)

* Update existing tests

* Add backend test

* feat: add force option to report screenshots

* Add tests

* Rebase fixes

* Do not force screenshot on dashboard alerts
This commit is contained in:
Beto Dealmeida
2021-12-22 12:16:04 -08:00
committed by GitHub
parent cb0b7a2284
commit 2cd8054358
8 changed files with 135 additions and 8 deletions
@@ -71,6 +71,7 @@ export interface ReportObject {
validator_type: string;
working_timeout: number;
creation_method: string;
force_screenshot: boolean;
}
interface ChartObject {
@@ -227,6 +228,7 @@ const ReportModal: FunctionComponent<ReportProps> = ({
active: true,
report_format: currentReport?.report_format || defaultNotificationFormat,
timezone: currentReport?.timezone,
force_screenshot: false,
};
if (isEditMode) {