diff --git a/src/app/helpers/core.ts b/src/app/helpers/core.ts index 8a4e29a..e9e0ef6 100644 --- a/src/app/helpers/core.ts +++ b/src/app/helpers/core.ts @@ -4,6 +4,7 @@ import { id } from './id'; export const defaultCore: () => ICoreContent = () => ({ _id: id(), name: '', + desc: '', yaml: '', json: undefined, }); diff --git a/src/app/tabs/cores/cores-editor/cores-editor.component.html b/src/app/tabs/cores/cores-editor/cores-editor.component.html index 10980c3..7ca98c5 100644 --- a/src/app/tabs/cores/cores-editor/cores-editor.component.html +++ b/src/app/tabs/cores/cores-editor/cores-editor.component.html @@ -18,6 +18,11 @@ (ngModelChange)="update('name', $event)" [class.has-error]="!satisfiesUnique()" /> +
+ Description + +
+
diff --git a/src/app/tabs/cores/cores.component.ts b/src/app/tabs/cores/cores.component.ts index af8098f..3cde2a4 100644 --- a/src/app/tabs/cores/cores.component.ts +++ b/src/app/tabs/cores/cores.component.ts @@ -28,6 +28,14 @@ export class CoresComponent extends EditorBaseTableComponent { filter: 'agTextColumnFilter', sort: 'asc', }, + { + field: 'desc', + flex: 5, + cellDataType: 'text', + filter: 'agTextColumnFilter', + cellClass: 'leading-4 whitespace-break-spaces', + sortable: false, + }, { field: '', width: 200, diff --git a/src/interfaces/core.ts b/src/interfaces/core.ts index d055d3a..f89748a 100644 --- a/src/interfaces/core.ts +++ b/src/interfaces/core.ts @@ -2,6 +2,7 @@ import { HasIdentification } from './identified'; export interface ICoreContent extends HasIdentification { name: string; + desc: string; yaml: string; json: any; }