Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
Signed-off-by: Shey Gao <sheygao@amazon.com>
  • Loading branch information
Shey Gao committed Aug 29, 2024
1 parent a577800 commit 08a3536
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ export class CreateSnapshotPolicy extends MDSEnabledComponent<CreateSMPolicyProp
</EuiFlexItem>

<EuiFlexItem grow={false}>
<EuiSmallButton fill iconType={isEdit ? "refresh" : "plus"} onClick={this.onClickSubmit} isLoading={isSubmitting}>
<EuiSmallButton fill onClick={this.onClickSubmit} isLoading={isSubmitting}>
{isEdit ? "Update" : "Create"}
</EuiSmallButton>
</EuiFlexItem>
Expand Down
4 changes: 1 addition & 3 deletions public/pages/Snapshots/components/ErrorModal/ErrorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ const ErrorModal = ({ onClick, error, snapshotId }: ErrorModalProps) => {
<EuiModal onClose={onClick}>
<EuiModalHeader color="danger" style={{ flexDirection: "column", alignItems: "flex-start" }}>
<EuiModalHeaderTitle>
<EuiText size="s">
<h2>{`Failed to restore snapshot ${snapshotId}`}</h2>
</EuiText>
<h1>{`Failed to restore snapshot ${snapshotId}`}</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
2 changes: 1 addition & 1 deletion public/pages/Snapshots/components/IndexList/IndexList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const IndexList = ({ indices, snapshot, onClick, title, columns }: IndexListProp
return (
<>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="s">
<EuiTitle size="m">
<h2 id="flyoutTitle">
<EuiIcon onClick={onClick} size="xl" color="primary" type="arrowLeft" style={{ cursor: "pointer", padding: "0 0 5px 0" }} />{" "}
{title} {snapshot} ({indices.length})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { EuiInMemoryTable, EuiSpacer, EuiLink, EuiFlyout, EuiSmallButton, EuiButtonIcon, EuiEmptyPrompt, EuiHealth, EuiText } from "@elastic/eui";
import { EuiInMemoryTable, EuiSpacer, EuiLink, EuiFlyout, EuiSmallButton, EuiButtonIcon, EuiEmptyPrompt, EuiHealth } from "@elastic/eui";
import _ from "lodash";
import React, { useEffect, useContext, useState, useMemo } from "react";
import { SnapshotManagementService } from "../../../../services";
Expand Down Expand Up @@ -254,28 +254,16 @@ export const RestoreActivitiesPanel = ({
},
};

const oldMessage = (
<EuiEmptyPrompt
body={
<EuiText size="s">
<p>There are no restore activities.</p>
</EuiText>
}
titleSize="s"
/>
);
const oldMessage = <EuiEmptyPrompt body={<p>There are no restore activities.</p>} titleSize="s"></EuiEmptyPrompt>;
const newMessage = (
<EuiEmptyPrompt
body={
<EuiText size="s">
<>
<h1>There are no restore activities</h1>
<p>When a restore activity is in progress it will appear here.</p>
</>
</EuiText>
<>
<h1>There are no restore activities</h1> <p>When a restore activity is in progress it will appear here.</p>
</>
}
titleSize="s"
/>
></EuiEmptyPrompt>
);
const message = useNewUX ? newMessage : oldMessage;
const title = useNewUX ? undefined : "Restore activities in progress";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export class RestoreSnapshotFlyout extends MDSEnabledComponent<RestoreSnapshotPr
) : (
<>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="s">
<EuiTitle size="m">
<h2 id="flyoutTitle">Restore snapshot</h2>
</EuiTitle>
</EuiFlyoutHeader>
Expand Down Expand Up @@ -487,13 +487,11 @@ export class RestoreSnapshotFlyout extends MDSEnabledComponent<RestoreSnapshotPr

{snapshot?.failed_shards && (
<EuiCallOut title="Restoring a partial snapshot" color="warning">
<EuiText size="s">
<p>
You are about to restore a partial snapshot. One or more shards may be missing in this
<br />
snapshot. Do you want to continue?
</p>
</EuiText>
<p>
You are about to restore a partial snapshot. One or more shards may be missing in this
<br />
snapshot. Do you want to continue?
</p>
<EuiSpacer size="s" />
<EuiCompressedCheckbox
id={partial}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class SnapshotFlyout extends MDSEnabledComponent<SnapshotFlyoutProps, Sna
return (
<EuiFlyout ownFocus={false} onClose={onCloseFlyout} maxWidth={600} size="m" hideCloseButton>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="s">
<EuiTitle size="m">
<h2 id="flyoutTitle">{snapshot?.snapshot}</h2>
</EuiTitle>
</EuiFlyoutHeader>
Expand Down

0 comments on commit 08a3536

Please sign in to comment.