Skip to content

Commit a35d1d8

Browse files
danieltigsePedro Aim
authored andcommitted
bug fixes at mailbox
1 parent 64bd6cd commit a35d1d8

File tree

20 files changed

+99
-75
lines changed

20 files changed

+99
-75
lines changed

electron_app/src/windows/launch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path');
44
const openLaunchWindow = () => {
55
try {
66
const workerWin = new BrowserWindow({
7-
width: 300,
7+
width: 350,
88
height: 220,
99
frame: false,
1010
transparent: true,

electron_app/src/windows/login.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const { BrowserWindow, shell } = require('electron');
22
const path = require('path');
33
const { loginUrl } = require('./../window_routing');
4-
const globalManager = require('./../globalManager');
54
const { addEventTrack, NUCLEUS_EVENTS } = require('./../nucleusManager');
65
let loginWindow;
76
let shouldCloseForce = false;
@@ -36,16 +35,11 @@ const create = () => {
3635
loginWindow.webContents.openDevTools({ mode: 'undocked' });
3736
}
3837

39-
loginWindow.on('close', e => {
40-
const isMacOs = process.platform === 'darwin';
38+
loginWindow.on('close', () => {
4139
if (shouldCloseForce === true) {
4240
shouldCloseForce = false;
4341
return;
4442
}
45-
if (isMacOs && !globalManager.forcequit.get()) {
46-
e.preventDefault();
47-
hide();
48-
}
4943
});
5044
loginWindow.on('closed', () => {
5145
if (process.platform !== 'darwin') {

electron_app/src/windows/preparing.html

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
width: 100%;
1717
}
1818
body {
19-
width: 300px;
19+
width: 350px;
2020
height: 220px;
2121
display: flex;
2222
flex-direction: column;
@@ -49,7 +49,7 @@
4949

5050
.encrypt-loading{
5151
margin: 15px auto 0;
52-
width: 175px;
52+
width: 225px;
5353
}
5454

5555
.bar {
@@ -93,7 +93,7 @@
9393
}
9494

9595
.message {
96-
margin-top: 30px;
96+
margin-top: 20px;
9797
text-align: center;
9898
}
9999

@@ -103,6 +103,20 @@
103103
font-size: 16px;
104104
display: block;
105105
}
106+
107+
.title{
108+
font-size: 16px;
109+
font-weight: 600;
110+
color: #000000;
111+
}
112+
113+
.subtitle{
114+
font-size: 14px;
115+
font-weight: 600;
116+
color: #747474;
117+
padding: 0 40px;
118+
margin-top: 5px;
119+
}
106120
</style>
107121
</head>
108122
<body>
@@ -117,10 +131,7 @@
117131
</div>
118132
<div class="message">
119133
<span class="img-container">
120-
Launching Awesomeness!
121-
<br />
122-
Do not close the app!
123-
</span>
124-
</div>
134+
<span class="title">Migrating Database</span>
135+
<span class="subtitle">This may take a while. Please don't close the app!</span>
125136
</body>
126137
</html>

email_composer/src/lang/de.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"suffix": "."
5252
}
5353
},
54-
"encrypting": {
55-
"name": "Verschlüsselungsfehler",
56-
"description": "Beim Verschlüsseln der Nachricht ist ein Fehler aufgetreten.\nCode: "
54+
"serverError": {
55+
"name": "Server Error",
56+
"description": "An error occurred while sending your email.\nCode: "
5757
},
5858
"nonExistingUsers": {
5959
"name": "Nicht existierende Benutzer",
@@ -84,7 +84,7 @@
8484
"description": "Verbindung zum Server kann nicht hergestellt werden"
8585
},
8686
"unauthorized": {
87-
"name": "Verschlüsselungsfehler",
87+
"name": "Server Error",
8888
"description": "Bei Ihrer Anfrage ist ein Fehler aufgetreten. \n Bitte versuche es erneut"
8989
},
9090
"uploadFailed": {

email_composer/src/lang/en.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"suffix": "."
5252
}
5353
},
54-
"encrypting": {
55-
"name": "Encrypting error",
56-
"description": "An error occurred while encrypting message.\nCode: "
54+
"serverError": {
55+
"name": "Server error",
56+
"description": "An error occurred while sending your email.\nCode: "
5757
},
5858
"nonExistingUsers": {
5959
"name": "Non existing users",
@@ -84,7 +84,7 @@
8484
"description": "Unable to connect to server"
8585
},
8686
"unauthorized": {
87-
"name": "Encrypting error",
87+
"name": "Server Error",
8888
"description": "An error occurred in your request.\nPlease try again"
8989
},
9090
"uploadFailed": {

email_composer/src/lang/es.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"suffix": " por archivos."
5252
}
5353
},
54-
"encrypting": {
55-
"name": "Error de encriptación",
56-
"description": "Ha ocurrido un error durante el proceso de encriptación del mensaje.\nCódigo: "
54+
"serverError": {
55+
"name": "Error en el servidor",
56+
"description": "Ha ocurrido un error durante el proceso de envío del correo.\nCódigo: "
5757
},
5858
"nonExistingUsers": {
5959
"name": "Usuarios no existentes",
@@ -84,7 +84,7 @@
8484
"description": "No se ha podido establecer una conexión con el servidor."
8585
},
8686
"unauthorized": {
87-
"name": "Error de encriptación",
87+
"name": "Error en el servidor",
8888
"description": "Ha ocurrido un error en tu solicitud.\nPor favor intenta de nuevo"
8989
},
9090
"uploadFailed": {

email_composer/src/lang/fr.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"suffix": "."
5252
}
5353
},
54-
"encrypting": {
55-
"name": "Erreur de chiffrement",
56-
"description": "Une erreur s'est produite lors du chiffrement du message.\nCode: "
54+
"serverError": {
55+
"name": "Server Error",
56+
"description": "An error occurred while sending your email.\nCode: "
5757
},
5858
"nonExistingUsers": {
5959
"name": "Utilisateurs non existants",
@@ -84,7 +84,7 @@
8484
"description": "Impossible de se connecter au serveur"
8585
},
8686
"unauthorized": {
87-
"name": "Erreur de chiffrement",
87+
"name": "Server Error",
8888
"description": "Une erreur est survenue dans votre requête.\nVeuillez réessayer"
8989
},
9090
"uploadFailed": {

email_composer/src/lang/ru.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"suffix": "."
5252
}
5353
},
54-
"encrypting": {
55-
"name": "Ошибка шифрования",
56-
"description": "Во время шифрования сообщения произошла ошибка.\nКод:"
54+
"serverError": {
55+
"name": "Server Error",
56+
"description": "An error occurred while sending your email.\nCode: "
5757
},
5858
"nonExistingUsers": {
5959
"name": "Несуществующие пользователи",
@@ -84,7 +84,7 @@
8484
"description": "Не удалось подключиться к серверу"
8585
},
8686
"unauthorized": {
87-
"name": "Ошибка шифрования",
87+
"name": "Server Error",
8888
"description": "При обработке вашего запроса произошла ошибка.\nПожалуйста, повторите попытку"
8989
},
9090
"uploadFailed": {

email_composer/src/libs/signal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ const encryptPostEmail = async ({
267267
throw new CustomError(tooManyRequestErrorMessage);
268268
} else if (res.status !== 200) {
269269
throw new CustomError({
270-
name: string.errors.encrypting.name,
271-
description:
272-
string.errors.encrypting.description + `${res.status || 'Unknown'}`
270+
name: string.errors.serverError.name,
271+
description: `${string.errors.serverError.description}${res.status ||
272+
'Unknown'} Message: ${res.text || 'Unknown'}`
273273
});
274274
}
275275
return res;

email_mailbox/src/components/HeaderMain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const HeaderMain = props => (
2424
/>
2525
<ProfileShortCut
2626
avatarTimestamp={props.avatarTimestamp}
27-
onClickSettings={props.onClickSection}
27+
openSettings={props.openSettings}
2828
openLogin={props.openLogin}
2929
onUpdateApp={props.onUpdateApp}
3030
/>
@@ -39,11 +39,11 @@ HeaderMain.propTypes = {
3939
isHiddenMenuSearchHints: PropTypes.bool,
4040
isHiddenMenuSearchOptions: PropTypes.bool,
4141
isLoadingSearch: PropTypes.bool,
42-
onClickSection: PropTypes.func,
4342
onClearSearchInput: PropTypes.func,
4443
onClickSearch: PropTypes.func,
4544
onSearchSelectThread: PropTypes.func,
4645
openLogin: PropTypes.func,
46+
openSettings: PropTypes.func,
4747
onToggleMenuSearchHints: PropTypes.func,
4848
onToggleMenuSearchOptions: PropTypes.func,
4949
onTriggerSearch: PropTypes.func,

0 commit comments

Comments
 (0)