Skip to content

Commit d3a5a7a

Browse files
Format credits on orga page (#8487)
* format credits on orga page * add changelog entry * Update CHANGELOG.unreleased.md Co-authored-by: Daniel <daniel.werner@scalableminds.com> --------- Co-authored-by: Daniel <daniel.werner@scalableminds.com>
1 parent 654b308 commit d3a5a7a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
3232
- Fixed the alignment of the button that allows restricting floodfill operations to a bounding box. [#8388](https://github.com/scalableminds/webknossos/pull/8388)
3333
- Fixed a bug for rotated dataset where volume tools were disabled although the dataset was rendered untransformed. [#8432](https://github.com/scalableminds/webknossos/pull/8432)
3434
- Fixed rare bug where saving got stuck. [#8409](https://github.com/scalableminds/webknossos/pull/8409)
35+
- Improve formatting of credits amount in organization management page [#8487](https://github.com/scalableminds/webknossos/pull/8487)
3536
- Re-enabled jobs planned to be paid with credits for organizations without a paid plan. [#8478](https://github.com/scalableminds/webknossos/pull/8478)
3637
- Fixed that the dataset extent tooltip in the right details bar in the dashboard did not properly update when switching datasets. [#8477](https://github.com/scalableminds/webknossos/pull/8477)
3738
- Fixed some rendering bugs for float datasets that used a large dynamic range. [#8325](https://github.com/scalableminds/webknossos/pull/8325)

frontend/javascripts/admin/organization/organization_cards.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import { Alert, Button, Card, Col, Progress, Row, Tooltip } from "antd";
88
import { formatDateInLocalTimeZone } from "components/formatted_date";
99
import dayjs from "dayjs";
10-
import { formatCountToDataAmountUnit } from "libs/format_utils";
10+
import { formatCountToDataAmountUnit, formatCreditsString } from "libs/format_utils";
1111
import Constants from "oxalis/constants";
1212
import type { OxalisState } from "oxalis/store";
1313
import type React from "react";
@@ -311,7 +311,7 @@ export function PlanDashboardCard({
311311
<Row justify="center" align="middle" style={{ minHeight: 160 }}>
312312
<h3>
313313
{organization.creditBalance != null
314-
? organization.creditBalance
314+
? formatCreditsString(organization.creditBalance)
315315
: "No information access"}
316316
</h3>
317317
</Row>

0 commit comments

Comments
 (0)