Skip to content

Commit

Permalink
Fix for #1577 [packages-only]
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Nov 20, 2024
1 parent 2775444 commit 438aaa9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import strings from 'PortfolioWebPartsStrings'
import React from 'react'
import { ColumnRenderComponent } from '../types'

export const NoteColumn: ColumnRenderComponent = (props) => (
<span>{props.columnValue?.replace(/<[^>]*>/g, '')}</span>
)

NoteColumn.key = 'note'
NoteColumn.id = 'Note'
NoteColumn.displayName = strings.ColumnRenderOptionNote
NoteColumn.iconName = 'EditStyle'
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { GetDataTypeProperties, IColumnDataTypeFieldOption } from './ColumnDataT
import { BooleanColumn } from './BooleanColumn'
import { CurrencyColumn } from './CurrencyColumn'
import { NumberColumn } from './NumberColumn'
import { NoteColumn } from './NoteColumn'
import { PercentageColumn } from './PercentageColumn'
import { DateColumn } from './DateColumn'
import { DialogColumn } from './DialogColumn'
Expand Down Expand Up @@ -236,6 +237,7 @@ export function useColumnRenderComponentRegistry() {
FileNameColumn,
CurrencyColumn,
NumberColumn,
NoteColumn,
PercentageColumn,
ListColumn,
DialogColumn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<pnp:DataRow> <!-- ID: 10 -->
<pnp:DataValue FieldName="GtSortOrder">240</pnp:DataValue>
<pnp:DataValue FieldName="Title">Tiltak</pnp:DataValue>
<pnp:DataValue FieldName="GtInternalName">GtRiskActionOWSMTXT</pnp:DataValue>
<pnp:DataValue FieldName="GtInternalName">GtRiskAction</pnp:DataValue>
<pnp:DataValue FieldName="GtManagedProperty">GtRiskActionOWSMTXT</pnp:DataValue>
<pnp:DataValue FieldName="GtFieldDataType">Note</pnp:DataValue>
<pnp:DataValue FieldName="GtDataSourceCategory">Usikkerhetsoversikt</pnp:DataValue>
Expand Down

0 comments on commit 438aaa9

Please sign in to comment.