variant="danger"
iconSrc={BinIC}
onClick={() => {
- if (window.confirm('Are you sure you want to delete this event')) {
+ if (window.confirm('Are you sure that you want to delete this event?')) {
redactEvent(roomId, mEvent.getId());
}
}}
afterOptionSelect();
};
const handleLeaveClick = () => {
- if (confirm('Are you really want to leave this room?')) {
+ if (confirm('Are you sure that you want to leave this room?')) {
roomActions.leave(roomId);
afterOptionSelect();
}
const handleAvatarUpload = async (url) => {
if (url === null) {
- if (confirm('Are you sure you want to remove avatar?')) {
+ if (confirm('Are you sure that you want to remove room avatar?')) {
await mx.sendStateEvent(roomId, 'm.room.avatar', { url }, '');
}
} else await mx.sendStateEvent(roomId, 'm.room.avatar', { url }, '');
};
const handleLeaveClick = () => {
- if (confirm('Are you really want to leave this space?')) {
+ if (confirm('Are you sure that you want to leave this space?')) {
leave(roomId);
afterOptionSelect();
}
const handleAvatarUpload = (url) => {
if (url === null) {
- if (confirm('Are you sure you want to remove avatar?')) {
+ if (confirm('Are you sure that you want to remove avatar?')) {
mx.setAvatarUrl('');
setAvatarSrc(null);
}
<MenuItem
variant="danger"
onClick={() => {
- if (confirm('Are you really want to leave this room?')) {
+ if (confirm('Are you sure that you want to leave this room?')) {
roomActions.leave(roomId);
}
}}
const handleRemove = async (device, auth = undefined) => {
if (auth === undefined
- ? window.confirm(`You are about to logout "${device.display_name}" session?`)
+ ? window.confirm(`You are about to logout "${device.display_name}" session.`)
: true
) {
addToProcessing(device);
<MenuItem
variant="danger"
onClick={() => {
- if (confirm('Are you really want to leave this space?')) {
+ if (confirm('Are you sure that you want to leave this space?')) {
leave(roomId);
}
}}