mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
added image delete confirmation alert
This commit is contained in:
parent
b014d94a31
commit
0d8cb3106e
@ -116,8 +116,22 @@ export const UploadsGalleryModal = forwardRef(({username, handleOnSelect, handl
|
|||||||
}
|
}
|
||||||
|
|
||||||
const _onRemovePress = async () => {
|
const _onRemovePress = async () => {
|
||||||
|
const _onConfirm = () => {
|
||||||
_deleteMediaItem(item._id)
|
_deleteMediaItem(item._id)
|
||||||
}
|
}
|
||||||
|
Alert.alert(
|
||||||
|
intl.formatMessage({id:'uploads_modal.alert_remove_title'}),
|
||||||
|
intl.formatMessage({id:'uploads_modal.alert_remove_body'}),
|
||||||
|
[{
|
||||||
|
text:intl.formatMessage({id:'uploads_modal.alert_btn_no'}),
|
||||||
|
style:'cancel'
|
||||||
|
},{
|
||||||
|
text:intl.formatMessage({id:'uploads_modal.alert_btn_yes'}),
|
||||||
|
onPress:_onConfirm
|
||||||
|
}]
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const thumbUrl = proxifyImageSrc(item.url, 600, 500, Platform.OS === 'ios' ? 'match' : 'webp');
|
const thumbUrl = proxifyImageSrc(item.url, 600, 500, Platform.OS === 'ios' ? 'match' : 'webp');
|
||||||
|
|
||||||
|
@ -337,7 +337,11 @@
|
|||||||
"title_remove_confirmation":"Delete image",
|
"title_remove_confirmation":"Delete image",
|
||||||
"btn_add":"Image",
|
"btn_add":"Image",
|
||||||
"message_failed":"Failed to upload image",
|
"message_failed":"Failed to upload image",
|
||||||
"message_remove_confirmation":"Are you sure you want to delete this image?"
|
"message_remove_confirmation":"Are you sure you want to delete this image?",
|
||||||
|
"alert_remove_title":"Confirm Delete",
|
||||||
|
"alert_remove_body":"Are you sure you wish to delete this image?",
|
||||||
|
"alert_btn_yes":"Yes",
|
||||||
|
"alert_btn_no":"No"
|
||||||
},
|
},
|
||||||
"pincode": {
|
"pincode": {
|
||||||
"enter_text": "Enter PIN to unlock",
|
"enter_text": "Enter PIN to unlock",
|
||||||
|
Loading…
Reference in New Issue
Block a user