feat: add config for kanban columns
This commit is contained in:
@@ -2,14 +2,15 @@ import * as yaml from "js-yaml";
|
||||
import type { ProjectConfig } from "@/model/projectConfig";
|
||||
|
||||
export function serializeProjectConfig(config: ProjectConfig): string {
|
||||
const data: Record<string, unknown> = { tags: config.tags };
|
||||
if (config.shownHiddenColumns.length > 0) {
|
||||
data.shownHiddenColumns = config.shownHiddenColumns;
|
||||
}
|
||||
return yaml
|
||||
.dump(
|
||||
{ tags: config.tags },
|
||||
{
|
||||
lineWidth: -1,
|
||||
forceQuotes: false,
|
||||
},
|
||||
)
|
||||
.dump(data, {
|
||||
lineWidth: -1,
|
||||
forceQuotes: false,
|
||||
})
|
||||
.trimEnd()
|
||||
.concat("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user