Skip to content

Commit

Permalink
Updated titles for columns
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Jun 4, 2024
1 parent b75f508 commit 1b8ef4f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
6 changes: 0 additions & 6 deletions src/pages/columns/@column/+title.ts

This file was deleted.

5 changes: 4 additions & 1 deletion src/pages/columns/@column/column-inspector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function ColumnPage({ columnInfo, linkPrefix = "/" }) {
]),
]),
h("div.right-column", [
h.if(selectedUnit == null)(ColumnNavigatorMap, {
h(ColumnNavigatorMap, {
className: "column-map",
format: "geojson_bare",
currentColumn: {
Expand All @@ -72,6 +72,9 @@ function ColumnPage({ columnInfo, linkPrefix = "/" }) {
project_id: columnInfo.project_id,
},
},
style: {
display: selectedUnit == null ? "block" : "none",
},
setCurrentColumn(newColumn) {
const { col_id } = newColumn.properties;
navigate(linkPrefix + `columns/${col_id}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export async function onBeforeRender(pageContext) {

return {
pageContext: {
exports: {
...pageContext.exports,
title: columnInfo.col_name,
},
pageProps: {
columnInfo,
linkPrefix,
Expand Down
6 changes: 0 additions & 6 deletions src/pages/projects/@project/columns/@column/+title.ts

This file was deleted.

0 comments on commit 1b8ef4f

Please sign in to comment.