Switch filesize component from better to element
This commit is contained in:
parent
2799f0f2cc
commit
f7f8b9a50b
1 changed files with 7 additions and 6 deletions
|
@ -1,13 +1,16 @@
|
|||
import {text, html} from '../skooma.js'
|
||||
import {Better} from '../better.js'
|
||||
import element from "/element.js"
|
||||
|
||||
class FileSize extends Better {
|
||||
element(class FileSize extends HTMLElement {
|
||||
static attributes = {file: true}
|
||||
|
||||
constructor() {
|
||||
super()
|
||||
this.attachShadow({mode: "open"})
|
||||
this.connected.then(self => self.update())
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
this.update()
|
||||
}
|
||||
|
||||
fileChanged() {
|
||||
|
@ -24,6 +27,4 @@ class FileSize extends Better {
|
|||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FileSize.initialise()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue