Skip to content

Commit 7bb53dc

Browse files
committed
frontend/project/disk warning: point to upgrades page instead of settings
1 parent dfc6618 commit 7bb53dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/packages/frontend/project/warnings/disk-space.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
* License: MS-RSL – see LICENSE.md for details
44
*/
55

6-
import { Alert } from "../../antd-bootstrap";
6+
import { Alert } from "@cocalc/frontend/antd-bootstrap";
77
import {
88
React,
99
useMemo,
1010
useRedux,
1111
useTypedRedux,
1212
useActions,
13-
} from "../../app-framework";
14-
import { Icon } from "../../components";
13+
} from "@cocalc/frontend/app-framework";
14+
import { Icon } from "@cocalc/frontend/components";
1515
import { ALERT_STYLE } from "./common";
1616

1717
export const DiskSpaceWarning: React.FC<{ project_id: string }> = ({
@@ -40,7 +40,7 @@ export const DiskSpaceWarning: React.FC<{ project_id: string }> = ({
4040
return null;
4141
}
4242

43-
// the disk_usage comes from the project.status datatbase entry – not the "project-status" synctable
43+
// the disk_usage comes from the project.status database entry – not the "project-status" synctable
4444
const project_status = project.get("status");
4545
const disk_usage = project_status?.get("disk_MB");
4646
if (disk_usage == null) return null;
@@ -57,7 +57,7 @@ export const DiskSpaceWarning: React.FC<{ project_id: string }> = ({
5757
<Icon name="exclamation-triangle" /> WARNING: This project is running out
5858
of disk space: only {disk_free} MB out of {quotas.disk_quota} MB
5959
available.{" "}
60-
<a onClick={() => actions?.set_active_tab("settings")}>
60+
<a onClick={() => actions?.set_active_tab("upgrades")}>
6161
Increase the "Disk Space" quota
6262
</a>
6363
{" or "}

0 commit comments

Comments
 (0)