Improve strings (#488)
authorKrishan <33421343+kfiven@users.noreply.github.com>
Mon, 18 Apr 2022 03:25:16 +0000 (08:55 +0530)
committerGitHub <noreply@github.com>
Mon, 18 Apr 2022 03:25:16 +0000 (08:55 +0530)
* Update SpaceOptions.jsx

* Update RoomOptions.jsx

* Update RoomProfile.jsx

* Update ProfileEditor.jsx

* Update RoomSettings.jsx

* Update SpaceSettings.jsx

* Update Message.jsx

* Update DeviceManage.jsx

* Update Message.jsx

* Update RoomProfile.jsx

src/app/molecules/message/Message.jsx
src/app/molecules/room-options/RoomOptions.jsx
src/app/molecules/room-profile/RoomProfile.jsx
src/app/molecules/space-options/SpaceOptions.jsx
src/app/organisms/profile-editor/ProfileEditor.jsx
src/app/organisms/room/RoomSettings.jsx
src/app/organisms/settings/DeviceManage.jsx
src/app/organisms/space-settings/SpaceSettings.jsx

index 5a906f0d3c7a7be34cd3a33ad993cca070cb9db6..07499977ab97f71648111d03ee3377fef5869c8b 100644 (file)
@@ -547,7 +547,7 @@ const MessageOptions = React.memo(({
                   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());
                     }
                   }}
index 85b2b5a548ce94d430d492fc927ff463e94658eb..501788955f479456fe27d69a7701a814cc08b96a 100644 (file)
@@ -30,7 +30,7 @@ function RoomOptions({ roomId, afterOptionSelect }) {
     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();
     }
index e485bede9b2ef237f173cdad8c47a9ba84b4618d..4043cbf8c902394184da81493b77d5aebe47930a 100644 (file)
@@ -117,7 +117,7 @@ function RoomProfile({ roomId }) {
 
   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 }, '');
index 4b3e8cad1fac83293cd91a6b74bfbc87d6395e1c..e9b72cb62c4d27563a197b5c71696bce435bcf33 100644 (file)
@@ -55,7 +55,7 @@ function SpaceOptions({ roomId, afterOptionSelect }) {
   };
 
   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();
     }
index 038c2175b05983771a81653b71c309bf0cd5f837..677985f487b318dad603f046311bccee1317d183 100644 (file)
@@ -40,7 +40,7 @@ function ProfileEditor({ userId }) {
 
   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);
       }
index 0fb272218b9028e1038e69e192ac4ecfcdc61601..8d14c18dbdd38ea9736ac4b36a0af4fb03a2417b 100644 (file)
@@ -86,7 +86,7 @@ function GeneralSettings({ roomId }) {
         <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);
             }
           }}
index ccc6c47886c87542f5f5128664b180f95388e8b6..6beb2dc612d8cc360cf1e5094a3828064aaa7a6b 100644 (file)
@@ -107,7 +107,7 @@ function DeviceManage() {
 
   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);
index 5e557c80debaa57e579e9e49f999404b9ce7c66d..18e21cf30be3d25d5c31c1d77cabf5cbba0a6d17 100644 (file)
@@ -90,7 +90,7 @@ function GeneralSettings({ roomId }) {
         <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);
             }
           }}