Optimize Cloud66 integration sync function

This commit is contained in:
Tuan Dang
2023-07-23 22:16:27 +07:00
parent d48b5157d4
commit 77fdb6307c
4 changed files with 71 additions and 40 deletions
@@ -14,7 +14,7 @@ export default function Cloud66CreateIntegrationPage() {
try {
setApiKeyErrorText("");
if (apiKey.length === 0) {
setApiKeyErrorText("API Key cannot be blank");
setApiKeyErrorText("Access token cannot be blank");
return;
}
@@ -42,7 +42,7 @@ export default function Cloud66CreateIntegrationPage() {
<Card className="max-w-md rounded-md p-8">
<CardTitle className="text-center">Cloud 66 Integration</CardTitle>
<FormControl
label="Cloud 66 API Key"
label="Cloud 66 Personal Access Token"
errorText={apiKeyErrorText}
isError={apiKeyErrorText !== "" ?? false}
>
@@ -113,7 +113,7 @@ export default function Cloud66CreateIntegrationPage() {
placeholder="Provide a path, default is /"
/>
</FormControl>
<FormControl label="Cloud 66 Service" className="mt-4">
<FormControl label="Cloud 66 Application" className="mt-4">
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
@@ -131,7 +131,7 @@ export default function Cloud66CreateIntegrationPage() {
))
) : (
<SelectItem value="none" key="target-app-none">
No services found
No applications found
</SelectItem>
)}
</Select>