Grid Translate Edit - Delete

This commit is contained in:
Sedat Öztürk 2026-01-17 19:50:10 +03:00
parent 93f6b8aab6
commit fe098c1ee0
3 changed files with 18 additions and 6 deletions

View file

@ -46,7 +46,7 @@ const Dashboard: React.FC = () => {
href: ROUTES_ENUM.protected.saas.developerKit.migrations,
},
{
name: translate('::App.DeveloperKit.Dashboard.Stats.APIs'),
name: translate('::App.DeveloperKit.Dashboard.Stats.Apis'),
value: generatedEndpoints.filter((e) => e.isActive).length,
total: generatedEndpoints.length,
icon: FaServer,
@ -95,8 +95,8 @@ const Dashboard: React.FC = () => {
},
{
step: 4,
title: translate('::App.DeveloperKit.Dashboard.Flow.GenerateAPI'),
description: translate('::App.DeveloperKit.Dashboard.Flow.GenerateAPI.Desc'),
title: translate('::App.DeveloperKit.Dashboard.Flow.GenerateApi'),
description: translate('::App.DeveloperKit.Dashboard.Flow.GenerateApi.Desc'),
icon: FaServer,
color: 'bg-emerald-600',
href: ROUTES_ENUM.protected.saas.developerKit.endpoints,

View file

@ -114,7 +114,13 @@ function FormFieldTabDetails({
invalid={errors.editorOptions && touched.editorOptions}
errorMessage={errors.editorOptions}
>
<Field type="text" name="editorOptions" component={Input} />
<Field
type="text"
name="editorOptions"
component={Input}
rows={4}
textArea={true}
/>
</FormItem>
<Button block variant="solid" loading={isSubmitting} type="submit">

View file

@ -312,11 +312,17 @@ const useListFormColumns = ({
const buttons: any[] = []
if (hasUpdate) {
buttons.push('edit')
buttons.push({
name: 'edit',
text: translate('::App.Platform.Edit')
})
}
if (hasDelete) {
buttons.push('delete')
buttons.push({
name: 'delete',
text: translate('::App.Platform.Delete')
})
}
gridDto.gridOptions.commandColumnDto.forEach((action) => {