35 lines
465 B
JavaScript
35 lines
465 B
JavaScript
|
|
import input from '/elements/input.js';
|
|
|
|
import label from '/elements/label.js';
|
|
|
|
export default class userLabel extends label {
|
|
|
|
float = "left";
|
|
|
|
fontWeight = "bold";
|
|
|
|
padding = "12px";
|
|
|
|
paddingLeft = 26;
|
|
|
|
setAuthor( author ) {
|
|
|
|
if( author.username ) {
|
|
|
|
this.text = author.username.value;
|
|
|
|
}
|
|
}
|
|
|
|
create() {
|
|
|
|
var author = this.parent.parent.author;
|
|
|
|
this.setAuthor( author );
|
|
|
|
}
|
|
|
|
}
|
|
|