Skip to content

Commit

Permalink
Revert "Porteføljeoversikt: vis personlige visninger som egen "seksjo…
Browse files Browse the repository at this point in the history
…n" (#1063)"

This reverts commit bac8fff.
  • Loading branch information
olemp authored Mar 29, 2023
1 parent 943106e commit 29ee056
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 27 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Sjekk ut [release notes](./releasenotes/1.8.0.md) for høydepunkter og mer detal
- Tilgang for å opprette porteføljeoversikt-visninger er nå basert på tilgang til listen [#932](https://github.com/Puzzlepart/prosjektportalen365/issues/932)
- Alfabetisk sortering av filterverdier for Ressursallokering [#1059](https://github.com/Puzzlepart/prosjektportalen365/issues/1059)
- Håndterer ugyldig låst mal (i property bag) i prosjektoppsettet [#1057](https://github.com/Puzzlepart/prosjektportalen365/issues/1057)
- Porteføljeoversikt: vis personlige visninger som egen "seksjon" [#1045](https://github.com/Puzzlepart/prosjektportalen365/issues/1045)
- Fiks for doble scrollbars på hjelpeinnhold-vindu [#997](https://github.com/Puzzlepart/prosjektportalen365/issues/997)

### Feilrettinger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ import { IPortfolioOverviewCommandsProps, IPortfolioOverviewCommandsState } from
/**
* Component logic hook for the PortfolioOverviewCommands component. Handles the logic for
* the command bar and the filter panel.
*
* Renders the following context menu items for the command bar:
* - `EXCEL_EXPORT`: Excel export button
* - `NEW_VIEW`: New view button
* - `VIEW_OPTIONS`: View options button
* - `FILTERS`: Filters button
*
* @param props Props for the PortfolioOverviewCommands component
*/
Expand Down Expand Up @@ -79,31 +73,15 @@ export function usePortfolioOverviewCommands(props: IPortfolioOverviewCommandsPr
key: 'DIVIDER_01',
itemType: ContextualMenuItemType.Divider
},
...props.configuration.views.filter(v => !v.isPersonal).map(
...props.configuration.views.map(
(view) =>
({
key: view.id.toString(),
name: view.title,
iconProps: { iconName: view.iconName },
canCheck: true,
checked: view.id === props.currentView?.id,
onClick: () => props.events.onChangeView(view),
} as IContextualMenuItem)
),
{
key: 'HEADER_01',
itemType: ContextualMenuItemType.Header,
text: strings.PersonalViewsText
},
...props.configuration.views.filter(v => v.isPersonal).map(
(view) =>
({
key: view.id.toString(),
name: view.title,
iconProps: { iconName: view.iconName },
canCheck: true,
checked: view.id === props.currentView?.id,
onClick: () => props.events.onChangeView(view),
onClick: () => props.events.onChangeView(view)
} as IContextualMenuItem)
),
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
declare interface IPortfolioWebPartsStrings {
PersonalViewsText: string
ColumnRenderDescription: ReactNode
DisplayNameDescription: string
HideViewsLabel: string
Expand Down
1 change: 0 additions & 1 deletion SharePointFramework/PortfolioWebParts/src/loc/nb-no.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,5 @@ define([], function () {
ProjectContentColumnItemNotFound: 'Prosjektinnholdskolonne ble ikke funnet',
ShowHideColumnsLabel: 'Vis/skjul kolonner',
ShowHideColumnsDescription: 'Velg kolonnene som skal vises for nåværende visning. Endringen vil oppdatere datakilden med kolonnene som velges.',
PersonalViewsText: 'Personlige visninger'
}
})

0 comments on commit 29ee056

Please sign in to comment.