-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/cv2 4630 remove article from item (#2000)
* created remove article button * button with confirmation modal * Added Remove Article button, currently just for Explainer, will add Fact Check next * added remove fact check by updating claim description project media to null * fixed styling issues after fixing merge conflict * wrong type for id
- Loading branch information
1 parent
710ced9
commit 612ffc6
Showing
5 changed files
with
321 additions
and
63 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
localization/react-intl/src/app/components/article/RemoveArticleButton.json
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 @@ | ||
[ | ||
{ | ||
"id": "removedArticleButton.tooltip", | ||
"description": "Tooltip message displayed on remove article button when it is disabled.", | ||
"defaultMessage": "You can't remove this article." | ||
}, | ||
{ | ||
"id": "removeArticleWrapperButton.success", | ||
"description": "Banner displayed after an article is successfully removed from an item.", | ||
"defaultMessage": "Article successfully removed from item." | ||
}, | ||
{ | ||
"id": "removeArticleButton.confirmationDialogTitle", | ||
"description": "Title displayed on a confirmation modal when a user tries to remove an article.", | ||
"defaultMessage": "Are you sure you want to remove this article?" | ||
}, | ||
{ | ||
"id": "removeArticleButton.confirmationDialogBody", | ||
"description": "Confirmation message displayed on a modal when a user tries to remove an article.", | ||
"defaultMessage": "This article will no longer be associated with this media item but remain in your workspace." | ||
}, | ||
{ | ||
"id": "removeArticleButton.removeButton", | ||
"description": "Button label to remove article from item", | ||
"defaultMessage": "Remove article" | ||
} | ||
] |
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
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
Oops, something went wrong.