Skip to content

Commit bd1e98c

Browse files
committed
fix: Simplify TrademarksAndDesigns Collection with less dates
1 parent 30b49c8 commit bd1e98c

File tree

3 files changed

+3
-41
lines changed

3 files changed

+3
-41
lines changed

payload/src/collections/trademarks-designs.ts

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -57,41 +57,15 @@ export const TrademarksAndDesigns: CollectionConfig = {
5757
label: "Status der Eintragung",
5858
defaultValue: "Eingetragen und veröffentlicht",
5959
},
60-
{
61-
name: "submission_date",
62-
type: "date",
63-
label: "Datum der Einreichung",
64-
required: true,
65-
admin: {
66-
date: { pickerAppearance: "dayOnly", displayFormat: "dd.MM.yyyy" },
67-
},
68-
},
6960
{
7061
name: "registration_date",
7162
type: "date",
72-
label: "Datum der Eintragung",
63+
label: "Eingetragen am",
7364
required: true,
7465
admin: {
7566
date: { pickerAppearance: "dayOnly", displayFormat: "dd.MM.yyyy" },
7667
},
7768
},
78-
{
79-
name: "auto_renew",
80-
type: "checkbox",
81-
defaultValue: true,
82-
label: "Automatische Verlängerung",
83-
admin: { description: "Die Eintragung wird automatisch verlängert" },
84-
},
85-
{
86-
name: "expiry_date",
87-
type: "date",
88-
label: "Ablaufdatum",
89-
admin: {
90-
date: { pickerAppearance: "dayOnly", displayFormat: "dd.MM.yyyy" },
91-
description:
92-
"Nur bei Einträgen ohne automatische Verlängerung angeben.",
93-
},
94-
},
9569
{ name: "colors", type: "text", label: "Farben", hasMany: true },
9670
{
9771
name: "vienna_class",

payload/src/payload-types.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -425,16 +425,7 @@ export interface TrademarksDesign {
425425
'wordmark-title': string;
426426
company: string | Company;
427427
item_status?: ('Eingetragen und veröffentlicht' | 'Eintragung gelöscht' | 'Eintragung abgelaufen') | null;
428-
submission_date: string;
429428
registration_date: string;
430-
/**
431-
* Die Eintragung wird automatisch verlängert
432-
*/
433-
auto_renew?: boolean | null;
434-
/**
435-
* Nur bei Einträgen ohne automatische Verlängerung angeben.
436-
*/
437-
expiry_date?: string | null;
438429
colors?: string[] | null;
439430
vienna_class?: {
440431
root: {
@@ -749,10 +740,7 @@ export interface TrademarksDesignsSelect<T extends boolean = true> {
749740
'wordmark-title'?: T;
750741
company?: T;
751742
item_status?: T;
752-
submission_date?: T;
753743
registration_date?: T;
754-
auto_renew?: T;
755-
expiry_date?: T;
756744
colors?: T;
757745
vienna_class?: T;
758746
nice_class?: T;

payload/src/payload.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import { en } from "@payloadcms/translations/languages/en";
1010
import { buildConfig } from "payload";
1111
import sharp from "sharp";
1212
import { Companies } from "@/collections/companies";
13+
import { Docs } from "@/collections/docs";
1314
import { ExternalShareholders } from "@/collections/external-shareholders";
1415
import { HRPublications } from "@/collections/hr-publications";
1516
import { LEI } from "@/collections/lei";
1617
import { Network } from "@/collections/network";
1718
import { Persons } from "@/collections/persons";
19+
import { TrademarksAndDesigns } from "@/collections/trademarks-designs";
1820
import { Users } from "@/collections/users";
19-
import { Docs } from "./collections/docs";
20-
import { TrademarksAndDesigns } from "./collections/trademarks-designs";
2121

2222
const filename = fileURLToPath(import.meta.url);
2323
const dirname = path.dirname(filename);

0 commit comments

Comments
 (0)