Skip to content

Commit

Permalink
Personlig visning er standard når man oppretter ny visning #1539
Browse files Browse the repository at this point in the history
  • Loading branch information
olemp committed Jun 24, 2024
1 parent 5d532ce commit 55557c4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './ColumnFormPanel'
export * from './types'
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './ViewFormPanel'
export * from './types'
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,20 @@ export class PortfolioOverviewView {
* @param title Title of the view
* @param view View to create the default view from
* @param sortOrder Sort order for the view if no view is provided
* @param isPersonal `true` if the view is a personal view, `false` otherwise (default is `true`)
*/
public createDefault(
title: string,
view?: PortfolioOverviewView,
sortOrder?: number
sortOrder?: number,
isPersonal: boolean = true
): PortfolioOverviewView {
this.title = title
this.sortOrder = view ? view.sortOrder + 1 : sortOrder
this.searchQuery = view?.searchQuery ?? ''
this.iconName = 'LocationCircle'
this.isDefaultView = false
this.isPersonal = false
this.isPersonal = isPersonal
this.$map = this._toMap()
return this
}
Expand Down

0 comments on commit 55557c4

Please sign in to comment.