mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: display translatable settings only in translations UI
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user