diff --git a/src/components/ObsEdit/Header.js b/src/components/ObsEdit/Header.js
index 1d99cd0ef..f3a4d5c03 100644
--- a/src/components/ObsEdit/Header.js
+++ b/src/components/ObsEdit/Header.js
@@ -154,14 +154,25 @@ const Header = ( {
setDeleteSheetVisible( true );
setKebabMenuVisible( false );
}}
- title={
- observations.length > 1
- ? t( "Delete-observations" )
- : t( "Delete-observation" )
- }
+ title={t( "Delete-observation" )}
/>
+ { observations.length > 1 && (
+
{
+ setDiscardObservationSheetVisible( true );
+ setKebabMenuVisible( false );
+ }}
+ title={t( "Delete-all-observations" )}
+ />
+ ) }
- ), [kebabMenuVisible, observations, t, setDeleteSheetVisible] );
+ ), [
+ kebabMenuVisible,
+ observations,
+ setDeleteSheetVisible,
+ t
+ ] );
return (
@@ -176,6 +187,7 @@ const Header = ( {
navToObsList={navToObsList}
observations={observations}
currentObservation={currentObservation}
+ updateObservations={updateObservations}
/>
)}
{discardObservationSheetVisible && (
diff --git a/src/components/ObsEdit/Sheets/DeleteObservationSheet.js b/src/components/ObsEdit/Sheets/DeleteObservationSheet.js
index 99d33f7ce..78b58a800 100644
--- a/src/components/ObsEdit/Sheets/DeleteObservationSheet.js
+++ b/src/components/ObsEdit/Sheets/DeleteObservationSheet.js
@@ -6,26 +6,25 @@ import {
import { RealmContext } from "providers/contexts";
import type { Node } from "react";
import React, { useCallback } from "react";
-import { log } from "sharedHelpers/logger";
import safeRealmWrite from "sharedHelpers/safeRealmWrite";
import { useTranslation } from "sharedHooks";
const { useRealm } = RealmContext;
-const logger = log.extend( "DeleteObservationSheet" );
-
type Props = {
+ currentObservation: Object,
handleClose: Function,
navToObsList: Function,
- currentObservation: Object,
- observations: Array