Skip to content

Commit

Permalink
revert UI
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Mar 7, 2024
1 parent 2e1db31 commit fb5190a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/www/views/servers_view/server_list_item/server_card/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,6 @@ const sharedCSS = css`
grid-area: footer;
padding: var(--outline-mini-gutter) var(--outline-gutter);
text-align: end;
display: flex;
justify-content: space-between;
align-items: center;
}
.card-footer-button {
align-self: end;
}
.card-error {
Expand All @@ -146,9 +139,9 @@ const getSharedComponents = (element: ServerListItemElement & LitElement) => {
ServerConnectionState.RECONNECTING,
].includes(server.connectionState);
const hasErrorMessage = Boolean(server.errorMessageId);
const messages: {[key: string]: string} = {
const messages = {
serverName: server.name,
error: hasErrorMessage ? localize(server.errorMessageId) : server.errorMessageId,
error: hasErrorMessage ? localize(server.errorMessageId) : '',
connectButton: localize(isConnectedState ? 'disconnect-button-label' : 'connect-button-label'),
};

Expand Down Expand Up @@ -218,7 +211,6 @@ const getSharedComponents = (element: ServerListItemElement & LitElement) => {
<footer class="card-footer">
<span class="card-error">${messages.error}</span>
<mwc-button
class="card-footer-button"
label="${messages.connectButton}"
@click="${dispatchers.connectToggle}"
?disabled=${hasErrorMessage}
Expand Down

0 comments on commit fb5190a

Please sign in to comment.