mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
fix: Allow up to 1000 characters for label description (#948)
The database schema already supports 1,000 characters for label description, so this seems just like an oversight.
This commit is contained in:
committed by
GitHub
parent
e810571bf1
commit
8af1e8fcba
@@ -3639,7 +3639,7 @@ const docTemplate = `{
|
|||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 255
|
"maxLength": 1000
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -3637,7 +3637,7 @@
|
|||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 255
|
"maxLength": 1000
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -1012,7 +1012,7 @@ definitions:
|
|||||||
color:
|
color:
|
||||||
type: string
|
type: string
|
||||||
description:
|
description:
|
||||||
maxLength: 255
|
maxLength: 1000
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
maxLength: 255
|
maxLength: 255
|
||||||
|
|||||||
@@ -20,14 +20,14 @@ type LabelRepository struct {
|
|||||||
type (
|
type (
|
||||||
LabelCreate struct {
|
LabelCreate struct {
|
||||||
Name string `json:"name" validate:"required,min=1,max=255"`
|
Name string `json:"name" validate:"required,min=1,max=255"`
|
||||||
Description string `json:"description" validate:"max=255"`
|
Description string `json:"description" validate:"max=1000"`
|
||||||
Color string `json:"color"`
|
Color string `json:"color"`
|
||||||
}
|
}
|
||||||
|
|
||||||
LabelUpdate struct {
|
LabelUpdate struct {
|
||||||
ID uuid.UUID `json:"id"`
|
ID uuid.UUID `json:"id"`
|
||||||
Name string `json:"name" validate:"required,min=1,max=255"`
|
Name string `json:"name" validate:"required,min=1,max=255"`
|
||||||
Description string `json:"description" validate:"max=255"`
|
Description string `json:"description" validate:"max=1000"`
|
||||||
Color string `json:"color"`
|
Color string `json:"color"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3637,7 +3637,7 @@
|
|||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 255
|
"maxLength": 1000
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -1012,7 +1012,7 @@ definitions:
|
|||||||
color:
|
color:
|
||||||
type: string
|
type: string
|
||||||
description:
|
description:
|
||||||
maxLength: 255
|
maxLength: 1000
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
maxLength: 255
|
maxLength: 255
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<FormTextArea
|
<FormTextArea
|
||||||
v-model="form.description"
|
v-model="form.description"
|
||||||
:label="$t('components.label.create_modal.label_description')"
|
:label="$t('components.label.create_modal.label_description')"
|
||||||
:max-length="255"
|
:max-length="1000"
|
||||||
/>
|
/>
|
||||||
<ColorSelector v-model="form.color" :label="$t('components.label.create_modal.label_color')" :show-hex="true" />
|
<ColorSelector v-model="form.color" :label="$t('components.label.create_modal.label_color')" :show-hex="true" />
|
||||||
<div class="mt-4 flex flex-row-reverse">
|
<div class="mt-4 flex flex-row-reverse">
|
||||||
|
|||||||
@@ -648,7 +648,7 @@ export interface ItemUpdate {
|
|||||||
|
|
||||||
export interface LabelCreate {
|
export interface LabelCreate {
|
||||||
color: string;
|
color: string;
|
||||||
/** @maxLength 255 */
|
/** @maxLength 1000 */
|
||||||
description: string;
|
description: string;
|
||||||
/**
|
/**
|
||||||
* @minLength 1
|
* @minLength 1
|
||||||
|
|||||||
@@ -129,7 +129,7 @@
|
|||||||
<FormTextArea
|
<FormTextArea
|
||||||
v-model="updateData.description"
|
v-model="updateData.description"
|
||||||
:label="$t('components.label.create_modal.label_description')"
|
:label="$t('components.label.create_modal.label_description')"
|
||||||
:max-length="255"
|
:max-length="1000"
|
||||||
/>
|
/>
|
||||||
<ColorSelector
|
<ColorSelector
|
||||||
v-model="updateData.color"
|
v-model="updateData.color"
|
||||||
|
|||||||
Reference in New Issue
Block a user