Page MenuHomePhabricator

D12053.diff
No OneTemporary

D12053.diff

diff --git a/web/modals/keyserver-selection/add-keyserver-modal.css b/web/modals/keyserver-selection/add-keyserver-modal.css
--- a/web/modals/keyserver-selection/add-keyserver-modal.css
+++ b/web/modals/keyserver-selection/add-keyserver-modal.css
@@ -14,4 +14,5 @@
.errorMessage {
color: var(--text-background-danger-default);
margin-top: 8px;
+ height: 20px;
}
diff --git a/web/modals/keyserver-selection/add-keyserver-modal.react.js b/web/modals/keyserver-selection/add-keyserver-modal.react.js
--- a/web/modals/keyserver-selection/add-keyserver-modal.react.js
+++ b/web/modals/keyserver-selection/add-keyserver-modal.react.js
@@ -72,16 +72,13 @@
]);
const errorMessage = React.useMemo(() => {
- if (!showErrorMessage) {
- return null;
+ let errorText;
+ if (showErrorMessage) {
+ errorText =
+ 'Cannot connect to keyserver. Please check the URL or your ' +
+ 'connection and try again.';
}
-
- return (
- <div className={css.errorMessage}>
- Cannot connect to keyserver. Please check the URL or your connection and
- try again.
- </div>
- );
+ return <div className={css.errorMessage}>{errorText}</div>;
}, [showErrorMessage]);
const addKeyserverButton = React.useMemo(

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 3, 4:21 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2610185
Default Alt Text
D12053.diff (1 KB)

Event Timeline