Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leafty committed May 31, 2024
1 parent 75c8945 commit c79f9f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function DataSourcesDisplay({ project }: { project: Project }) {

const contentLoading = (isLoading || isFetching) && (
<div className="text-center">
<Loader className={cx("bi", "me-3", "mt-3")} inline size={16} />
<Loader className={cx("me-3", "mt-3")} inline size={16} />
<span className="fst-italic">Loading data sources</span>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion client/src/features/sessionsV2/SessionsV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function SessionLaunchersListDisplay({ project }: SessionsV2Props) {

const loading = isLoading && (
<div className="text-center">
<Loader className={cx("bi", "me-3", "mt-3")} inline size={16} />
<Loader className={cx("me-3", "mt-3")} inline size={16} />
<span className="fst-italic">Loading sessions</span>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,25 +248,23 @@ export default function ActiveSessionButton({
"btn-icon-text",
"start-session-button",
"py-1",
"px-2",
"d-flex",
"align-items-center"
"px-2"
);

const defaultAction =
status === "stopping" || isStopping ? (
<Button className={buttonClassName} data-cy="stopping-btn" disabled>
<Loader className={cx("bi", "me-1")} inline size={16} />
<Loader className="me-1" inline size={16} />
Deleting
</Button>
) : isHibernating ? (
<Button className={buttonClassName} data-cy="stopping-btn" disabled>
<Loader className={cx("bi", "me-1")} inline size={16} />
<Loader className="me-1" inline size={16} />
Pausing
</Button>
) : status === "starting" || status === "running" ? (
<Link
className={buttonClassName}
className={cx(buttonClassName, "d-inline-flex")}
data-cy="open-session"
to={showSessionUrl}
>
Expand All @@ -285,7 +283,7 @@ export default function ActiveSessionButton({
>
{isResuming ? (
<>
<Loader className={cx("bi", "me-1")} inline size={16} />
<Loader className="me-1" inline size={16} />
Resuming
</>
) : (
Expand Down

0 comments on commit c79f9f2

Please sign in to comment.