Grid Translate Edit - Delete

This commit is contained in:
Sedat Öztürk 2026-01-17 19:50:10 +03:00
parent 93f6b8aab6
commit 52c93ccbaf
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, 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, value: generatedEndpoints.filter((e) => e.isActive).length,
total: generatedEndpoints.length, total: generatedEndpoints.length,
icon: FaServer, icon: FaServer,
@ -95,8 +95,8 @@ const Dashboard: React.FC = () => {
}, },
{ {
step: 4, step: 4,
title: translate('::App.DeveloperKit.Dashboard.Flow.GenerateAPI'), title: translate('::App.DeveloperKit.Dashboard.Flow.GenerateApi'),
description: translate('::App.DeveloperKit.Dashboard.Flow.GenerateAPI.Desc'), description: translate('::App.DeveloperKit.Dashboard.Flow.GenerateApi.Desc'),
icon: FaServer, icon: FaServer,
color: 'bg-emerald-600', color: 'bg-emerald-600',
href: ROUTES_ENUM.protected.saas.developerKit.endpoints, href: ROUTES_ENUM.protected.saas.developerKit.endpoints,

View file

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

View file

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