fix: display translatable settings only in translations UI

This commit is contained in:
abdou6666
2024-11-22 11:25:50 +01:00
parent 2d4b00b9c0
commit c655026386
9 changed files with 149 additions and 23 deletions

View File

@@ -9,6 +9,7 @@
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import {
IsArray,
IsBoolean,
IsIn,
IsNotEmpty,
IsOptional,
@@ -65,8 +66,20 @@ export class SettingCreateDto {
//TODO: adding swagger decorators
config?: Record<string, any>;
//TODO: adding swagger decorators
@ApiPropertyOptional({
description:
'Defines the display order of the setting in the user interface',
type: Number,
})
weight: number;
@ApiPropertyOptional({
description: 'Indicates whether this setting supports translation',
type: Boolean,
})
@IsBoolean()
@IsOptional()
translatable?: boolean;
}
export class SettingUpdateDto {