Skip to content

Commit

Permalink
fix: View read-only props
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Aug 18, 2023
1 parent 9f271c9 commit e7cd5e3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/navigation/view.ts
Expand Up @@ -126,14 +126,26 @@ export class View implements ViewData {
return this._view.icon
}

set icon(icon) {
this._view.icon = icon

Check warning on line 130 in lib/navigation/view.ts

View check run for this annotation

Codecov / codecov/patch

lib/navigation/view.ts#L130

Added line #L130 was not covered by tests
}

get order() {
return this._view.order
}

set order(order) {
this._view.order = order

Check warning on line 138 in lib/navigation/view.ts

View check run for this annotation

Codecov / codecov/patch

lib/navigation/view.ts#L138

Added line #L138 was not covered by tests
}

get params() {
return this._view.params
}

set params(params) {
this._view.params = params

Check warning on line 146 in lib/navigation/view.ts

View check run for this annotation

Codecov / codecov/patch

lib/navigation/view.ts#L146

Added line #L146 was not covered by tests
}

get columns() {
return this._view.columns
}
Expand All @@ -154,6 +166,10 @@ export class View implements ViewData {
return this._view.expanded
}

set expanded(expanded: boolean | undefined) {
this._view.expanded = expanded

Check warning on line 170 in lib/navigation/view.ts

View check run for this annotation

Codecov / codecov/patch

lib/navigation/view.ts#L170

Added line #L170 was not covered by tests
}

get defaultSortKey() {
return this._view.defaultSortKey
}
Expand Down

0 comments on commit e7cd5e3

Please sign in to comment.