MCPcopy Create free account
hub / github.com/bytebase/bytebase / rootLabelFor

Function rootLabelFor

frontend/src/views/sql-editor/Sheet/context.ts:405–416  ·  view source on GitHub ↗
(view: SheetViewMode)

Source from the content-addressed store, hash-verified

403});
404
405const rootLabelFor = (view: SheetViewMode): string => {
406 switch (view) {
407 case "my":
408 return i18n.t("sheet.mine");
409 case "shared":
410 return i18n.t("sheet.shared");
411 case "draft":
412 return i18n.t("common.draft");
413 default:
414 return "";
415 }
416};
417
418const rootTreeNodeFor = (view: SheetViewMode): WorksheetFolderNode => ({
419 isLeaf: false,

Callers 2

rootTreeNodeForFunction · 0.85
rebuildTreeImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected