From dc6128e9e2870d9edc9539f6ca13c3f40a71e90d Mon Sep 17 00:00:00 2001 From: Qweder93 Date: Tue, 4 Jan 2022 15:56:42 +0200 Subject: [PATCH] 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 --- satellite/admin/ui/src/lib/api.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/satellite/admin/ui/src/lib/api.ts b/satellite/admin/ui/src/lib/api.ts index fd8c9e728..7c926729a 100644 --- a/satellite/admin/ui/src/lib/api.ts +++ b/satellite/admin/ui/src/lib/api.ts @@ -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 => { const query = this.urlQueryFromObject({ usage, bandwidth, rate, - buckets + buckets, + segments }); if (query === '') {