From 9909c1cb769a5837e887caef60113150085aeadb Mon Sep 17 00:00:00 2001 From: xusongfu Date: Tue, 9 Aug 2022 14:01:31 +0800 Subject: [PATCH] fix: fix the add value of zun quota Disable the submit button when any resource's left value is 0 Change-Id: I623d2cdfade4337f274c999c483501354ad84e45 --- .../containers/Containers/actions/StepCreate/index.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/container-service/containers/Containers/actions/StepCreate/index.jsx b/src/pages/container-service/containers/Containers/actions/StepCreate/index.jsx index 2651b820..cf66834b 100644 --- a/src/pages/container-service/containers/Containers/actions/StepCreate/index.jsx +++ b/src/pages/container-service/containers/Containers/actions/StepCreate/index.jsx @@ -159,6 +159,11 @@ export class StepCreate extends StepAction { if (left === -1) { return ''; } + if (left === 0) { + return t('Quota: Insufficient { name } quota to create resources.', { + name, + }); + } if (input > left) { return t( 'Insufficient {name} quota to create resources(left { quota }, input { input }).',