-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove merge mode from metadata import UI
- Loading branch information
Showing
4 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import i18n from '@dhis2/d2-i18n' | ||
import { NoticeBox } from '@dhis2/ui' | ||
import React from 'react' | ||
|
||
const mergeOperation = 'REPLACE' | ||
|
||
const MERGE_NOTICE_TITLE = i18n.t( | ||
'All existing property values will be replaced' | ||
) | ||
const MERGE_NOTICE_TEXT = i18n.t( | ||
'Values will be overwritten, even if the new value is null' | ||
) | ||
|
||
const MergeOperationNotice = () => { | ||
return ( | ||
<div style={{ maxWidth: '80%' }}> | ||
<NoticeBox | ||
dataTest={'merge-operation-notice'} | ||
title={MERGE_NOTICE_TITLE} | ||
> | ||
{MERGE_NOTICE_TEXT} | ||
</NoticeBox> | ||
</div> | ||
) | ||
} | ||
|
||
export { mergeOperation, MergeOperationNotice } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters