diff --git a/models/update_user_groups.go b/models/update_user_groups.go
new file mode 100644
index 000000000..d27245947
--- /dev/null
+++ b/models/update_user_groups.go
@@ -0,0 +1,81 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+// This file is part of MinIO Console Server
+// Copyright (c) 2020 MinIO, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+//
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// UpdateUserGroups update user groups
+//
+// swagger:model updateUserGroups
+type UpdateUserGroups struct {
+
+ // groups
+ // Required: true
+ Groups []string `json:"groups"`
+}
+
+// Validate validates this update user groups
+func (m *UpdateUserGroups) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateGroups(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *UpdateUserGroups) validateGroups(formats strfmt.Registry) error {
+
+ if err := validate.Required("groups", "body", m.Groups); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *UpdateUserGroups) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *UpdateUserGroups) UnmarshalBinary(b []byte) error {
+ var res UpdateUserGroups
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/portal-ui/bindata_assetfs.go b/portal-ui/bindata_assetfs.go
index c4cc19dc0..32cfff90e 100644
--- a/portal-ui/bindata_assetfs.go
+++ b/portal-ui/bindata_assetfs.go
@@ -36,10 +36,10 @@
package portal
import (
- "github.com/elazarl/go-bindata-assetfs"
"bytes"
"compress/gzip"
"fmt"
+ "github.com/elazarl/go-bindata-assetfs"
"io"
"io/ioutil"
"os"
@@ -914,14 +914,14 @@ var _bintree = &bintree{nil, map[string]*bintree{
"images": &bintree{nil, map[string]*bintree{
"BG_Illustration.svg": &bintree{buildImagesBg_illustrationSvg, map[string]*bintree{}},
}},
- "index.html": &bintree{buildIndexHtml, map[string]*bintree{}},
- "logo192.png": &bintree{buildLogo192Png, map[string]*bintree{}},
- "logo512.png": &bintree{buildLogo512Png, map[string]*bintree{}},
- "manifest.json": &bintree{buildManifestJson, map[string]*bintree{}},
+ "index.html": &bintree{buildIndexHtml, map[string]*bintree{}},
+ "logo192.png": &bintree{buildLogo192Png, map[string]*bintree{}},
+ "logo512.png": &bintree{buildLogo512Png, map[string]*bintree{}},
+ "manifest.json": &bintree{buildManifestJson, map[string]*bintree{}},
"precache-manifest.bef0dbe8fb8fcdf4145f7d058e838793.js": &bintree{buildPrecacheManifestBef0dbe8fb8fcdf4145f7d058e838793Js, map[string]*bintree{}},
- "robots.txt": &bintree{buildRobotsTxt, map[string]*bintree{}},
- "safari-pinned-tab.svg": &bintree{buildSafariPinnedTabSvg, map[string]*bintree{}},
- "service-worker.js": &bintree{buildServiceWorkerJs, map[string]*bintree{}},
+ "robots.txt": &bintree{buildRobotsTxt, map[string]*bintree{}},
+ "safari-pinned-tab.svg": &bintree{buildSafariPinnedTabSvg, map[string]*bintree{}},
+ "service-worker.js": &bintree{buildServiceWorkerJs, map[string]*bintree{}},
"static": &bintree{nil, map[string]*bintree{
"css": &bintree{nil, map[string]*bintree{
"2.57146246.chunk.css": &bintree{buildStaticCss257146246ChunkCss, map[string]*bintree{}},
diff --git a/portal-ui/src/screens/Console/Buckets/ListBuckets/AddBucket.tsx b/portal-ui/src/screens/Console/Buckets/ListBuckets/AddBucket.tsx
index 0d629b128..75ad3f8ea 100644
--- a/portal-ui/src/screens/Console/Buckets/ListBuckets/AddBucket.tsx
+++ b/portal-ui/src/screens/Console/Buckets/ListBuckets/AddBucket.tsx
@@ -49,7 +49,7 @@ interface IAddBucketProps {
interface IAddBucketState {
addLoading: boolean;
addError: string;
- bucketName: string;
+ bucketName: string;
}
class AddBucket extends React.Component {
@@ -92,7 +92,7 @@ class AddBucket extends React.Component {
render() {
const { classes, open } = this.props;
- const { addLoading, addError} = this.state;
+ const { addLoading, addError } = this.state;
return (