Skip to content

Commit 251efc1

Browse files
Merge pull request #94 from NessieCanCode/rename-rates-nav-button-to-settings
Rename Rates nav button to Settings
2 parents f52f3ef + 6ab9254 commit 251efc1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This repository now includes a responsive Cockpit UI built with React. The inte
1111
- **Detailed cost drill-downs** (core‑hours, instance‑hours, GB‑month) for per‑account transparency.
1212
- **Historical billing data** accessible from account inception for auditing and trend analysis.
1313
- **Organization-wide views** consolidating charges across all member Slurm accounts.
14-
- **Configurable rate table** with per-account overrides, editable from a dedicated Rates tab.
14+
- **Configurable rate table** with per-account overrides, editable from a dedicated Settings tab.
1515

1616

1717
## 📁 Project Structure

src/slurmcostmanager.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -964,12 +964,12 @@ function App() {
964964
),
965965
React.createElement(
966966
'button',
967-
{ onClick: () => setView('rates') },
968-
'Rates'
967+
{ onClick: () => setView('settings') },
968+
'Settings'
969969
)
970970
),
971-
view !== 'rates' && !data && !error && React.createElement('p', null, 'Loading...'),
972-
view !== 'rates' && error && React.createElement('p', { className: 'error' }, 'Failed to load data'),
971+
view !== 'settings' && !data && !error && React.createElement('p', null, 'Loading...'),
972+
view !== 'settings' && error && React.createElement('p', { className: 'error' }, 'Failed to load data'),
973973
data &&
974974
view === 'summary' &&
975975
React.createElement(Summary, {
@@ -981,7 +981,7 @@ function App() {
981981
data &&
982982
view === 'details' &&
983983
React.createElement(Details, { details: data.details, daily: data.daily }),
984-
view === 'rates' && React.createElement(Rates, { onRatesUpdated: reload })
984+
view === 'settings' && React.createElement(Rates, { onRatesUpdated: reload })
985985
);
986986
}
987987

0 commit comments

Comments
 (0)