diff --git a/.golangci.yml b/.golangci.yml index 1a70607719..b083c8c3c0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -39,6 +39,10 @@ linters: testifylint: disable: - go-require + revive: + rules: + - name: "var-naming" + disabled: true exclusions: generated: lax rules: diff --git a/web-app/package.json b/web-app/package.json index 742922bb91..bac67b3e3d 100644 --- a/web-app/package.json +++ b/web-app/package.json @@ -11,8 +11,8 @@ "kbar": "^0.1.0-beta.46", "local-storage-fallback": "^4.1.3", "lodash": "^4.17.21", - "luxon": "^3.6.1", - "mds": "https://github.com/minio/mds.git#v1.1.4", + "luxon": "^3.7.1", + "mds": "https://github.com/minio/mds.git#v1.1.5", "react": "^18.3.1", "react-copy-to-clipboard": "^5.1.0", "react-dom": "^18.3.1", @@ -59,11 +59,11 @@ "proxy": "http://localhost:9090/", "devDependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@babel/runtime": "^7.27.6", + "@babel/runtime": "^7.28.2", "@playwright/test": "^1.53.1", "@types/jest": "^29.5.14", - "@types/lodash": "^4.17.18", - "@types/luxon": "^3.6.2", + "@types/lodash": "^4.17.20", + "@types/luxon": "^3.7.0", "@types/node": "20.17.47", "@types/react": "18.3.23", "@types/react-copy-to-clipboard": "^5.0.7", @@ -77,10 +77,10 @@ "@types/webpack-env": "^1.18.8", "babel-plugin-istanbul": "^6.1.1", "customize-cra": "^1.0.0", - "knip": "^5.61.2", + "knip": "^5.62.0", "minio": "^8.0.5", "nyc": "^15.1.0", - "prettier": "3.5.3", + "prettier": "3.6.2", "react-app-rewire-hot-loader": "^2.0.1", "react-app-rewired": "^2.2.1", "react-scripts": "5.0.1", @@ -100,7 +100,8 @@ "jspdf": "^3.0.0", "@babel/runtime": "^7.26.10", "prebuilt-install": "^2.1.3", - "tar-fs": "^2.1.3" + "tar-fs": "^2.1.3", + "form-data": "^4.0.4" }, "main": "index.js", "packageManager": "yarn@4.4.0" diff --git a/web-app/src/screens/Console/License/LicenseConsentModal.tsx b/web-app/src/screens/Console/License/LicenseConsentModal.tsx index f2927b51c7..671236dfbf 100644 --- a/web-app/src/screens/Console/License/LicenseConsentModal.tsx +++ b/web-app/src/screens/Console/License/LicenseConsentModal.tsx @@ -33,29 +33,14 @@ const LicenseConsentModal = () => { const [displayForceAcknowledge, setDisplayForceAcknowledge] = useState(false); - const [acknowledgeDisabled, setAcknowledgeDisabled] = - useState(false); const licenseAcknowledged = useSelector( (state: AppState) => state.system.licenseAcknowledged, ); const recordAgplConsent = () => { - setAcknowledgeDisabled(true); - - fetch("https://dl.min.io/server/minio/agplv3-ack", { - mode: "no-cors", - }) - .then(() => { - setLicenseConsent(); //to Local storage. - dispatch(setAcknowledgeLicense(true)); - setAcknowledgeDisabled(false); - }) - .catch(() => { - setAcknowledgeDisabled(false); - console.error("Error while trying to Acknowledge the license"); - dispatch(setAcknowledgeLicense(true)); - }); + setLicenseConsent(); //to Local storage. + dispatch(setAcknowledgeLicense(true)); }; if (licenseAcknowledged) { @@ -172,25 +157,15 @@ const LicenseConsentModal = () => { marginTop: "19px", display: "flex", alignItems: "center", - justifyContent: "space-between", + justifyContent: "center", }} > - - - Privacy Policy - -