@@ -0,0 +1,7 @@
|
||||
module.exports = class {
|
||||
isHighlighted(id) {
|
||||
if (typeof(window) !== "undefined") {
|
||||
return window.location.hash.endsWith(id)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<compact-list>
|
||||
<compact-list-item for(file in input.files) key=file.id id=file.id highlight=component.isHighlighted(file.id)>
|
||||
<file data=file
|
||||
user=input.user
|
||||
on-removed("emit", "removed", file)
|
||||
on-edited("emit", "edited", file)
|
||||
/>
|
||||
</compact-list-item>
|
||||
</compact-list>
|
||||
Reference in New Issue
Block a user