satellite/admin: add update project segment limit on ui

Added possibility to update project segment limit on
satellite admin panel ui.

Resolves https://github.com/storj/team-metainfo/issues/5

Change-Id: I192d0c9adbab411556aa46673167b3ff7437d04b
This commit is contained in:
Qweder93 2022-01-04 15:56:42 +02:00 committed by Nikolai Siedov
parent 8be655c487
commit dc6128e9e2

View File

@ -189,20 +189,23 @@ export class Admin {
['Storage (in bytes)', new InputText('number', false)],
['Bandwidth (in bytes)', new InputText('number', false)],
['Rate (requests per second)', new InputText('number', false)],
['Buckets (maximum number)', new InputText('number', false)]
['Buckets (maximum number)', new InputText('number', false)],
['Segments (maximum number)', new InputText('number', false)]
],
func: async (
projectId: string,
usage: number,
bandwidth: number,
rate: number,
buckets: number
buckets: number,
segments: number
): Promise<null> => {
const query = this.urlQueryFromObject({
usage,
bandwidth,
rate,
buckets
buckets,
segments
});
if (query === '') {