Removing "required" from line 13 CUSTOMEMBED.go (#22)

* Removing "required" from line 13 CUSTOMEMBED.go

* updating label: archive->trasncripts

Co-authored-by: Ryan <29165304+rxdn@users.noreply.github.com>
This commit is contained in:
Scott Brown 2023-01-02 13:44:00 -08:00 committed by GitHub
parent e5148d4086
commit 0b493f41dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@
<span slot="header">Tickets</span> <span slot="header">Tickets</span>
<div slot="content" class="col-1"> <div slot="content" class="col-1">
<div class="row"> <div class="row">
<ChannelDropdown label="Archive Channel" col4 channels={channels} withNull={true} <ChannelDropdown label="Transcripts Channel" col4 channels={channels} withNull={true}
bind:value={data.archive_channel}/> bind:value={data.archive_channel}/>
<Dropdown label="Overflow Category" col4 bind:value={data.overflow_category_id}> <Dropdown label="Overflow Category" col4 bind:value={data.overflow_category_id}>
<option value=-1>Disabled</option> <option value=-1>Disabled</option>

View File

@ -10,7 +10,7 @@ type CustomEmbed struct {
Title *string `json:"title" validate:"omitempty,min=1,max=255"` Title *string `json:"title" validate:"omitempty,min=1,max=255"`
Description *string `json:"description" validate:"omitempty,min=1,max=4096"` Description *string `json:"description" validate:"omitempty,min=1,max=4096"`
Url *string `json:"url" validate:"omitempty,url,max=255"` Url *string `json:"url" validate:"omitempty,url,max=255"`
Colour Colour `json:"colour" validate:"required,gte=0,lte=16777215"` Colour Colour `json:"colour" validate:"gte=0,lte=16777215"`
Author Author `json:"author" validate:"dive"` Author Author `json:"author" validate:"dive"`
ImageUrl *string `json:"image_url" validate:"omitempty,url,max=255"` ImageUrl *string `json:"image_url" validate:"omitempty,url,max=255"`
ThumbnailUrl *string `json:"thumbnail_url" validate:"omitempty,url,max=255"` ThumbnailUrl *string `json:"thumbnail_url" validate:"omitempty,url,max=255"`