First commit
This commit is contained in:
34
application/demo/comment/edit/comment.userLabel.js
Normal file
34
application/demo/comment/edit/comment.userLabel.js
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
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 );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user