Skip to content

Commit

Permalink
Use one-way binding for the path property (web-platform-tests#3342)
Browse files Browse the repository at this point in the history
* Use one-way binding for the path property

* Address review feedback
  • Loading branch information
past authored Jun 6, 2023
1 parent 24f02dc commit 28f7f6a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion webapp/components/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const PathInfo = (superClass) => class extends superClass {
return {
path: {
type: String,
notify: true,
},
encodedPath: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion webapp/views/wpt-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class WPTApp extends PathInfo(WPTFlags(TestRunsUIBase)) {
<wpt-results name="results"
is-loading="{{resultsLoading}}"
structured-search="[[structuredSearch]]"
path="{{subroute.path}}"
path="[[subroute.path]]"
test-runs="[[testRuns]]"
test-paths="{{testPaths}}"
search-results="{{searchResults}}"
Expand Down
2 changes: 1 addition & 1 deletion webapp/views/wpt-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class WPTResults extends AmendMetadataMixin(Pluralizer(WPTColors(WPTFlags(PathIn
<td onclick="[[handleTriageSelect(null, node, testRun)]]" onmouseover="[[handleTriageHover(null, node, testRun)]]">
<path-part
prefix="/results"
path="{{ node.path }}"
path="[[ node.path ]]"
query="{{ query }}"
is-dir="{{ node.isDir }}"
is-triage-mode=[[isTriageMode]]>
Expand Down

0 comments on commit 28f7f6a

Please sign in to comment.