mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Remove text(..)
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
4f05d9a5b7
commit
1772fc04f9
@ -1,5 +1,5 @@
|
|||||||
import {TemplateView} from "../../general/TemplateView.js";
|
import {TemplateView} from "../../general/TemplateView.js";
|
||||||
import {text, classNames, tag} from "../../general/html.js";
|
import {classNames, tag} from "../../general/html.js";
|
||||||
import {AvatarView} from "../../avatar.js";
|
import {AvatarView} from "../../avatar.js";
|
||||||
|
|
||||||
export class RoomDetailsView extends TemplateView {
|
export class RoomDetailsView extends TemplateView {
|
||||||
@ -23,14 +23,14 @@ export class RoomDetailsView extends TemplateView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_createRoomAliasDisplay(vm) {
|
_createRoomAliasDisplay(vm) {
|
||||||
return vm.canonicalAlias ? tag.div({className: "RoomDetailsView_id"}, [text(vm.canonicalAlias)]) :
|
return vm.canonicalAlias ? tag.div({className: "RoomDetailsView_id"}, [vm.canonicalAlias]) :
|
||||||
"";
|
"";
|
||||||
}
|
}
|
||||||
|
|
||||||
_createRightPanelRow(t, label, labelClass, value) {
|
_createRightPanelRow(t, label, labelClass, value) {
|
||||||
const labelClassString = classNames({RoomDetailsView_label: true, ...labelClass});
|
const labelClassString = classNames({RoomDetailsView_label: true, ...labelClass});
|
||||||
return t.div({className: "RoomDetailsView_row"}, [
|
return t.div({className: "RoomDetailsView_row"}, [
|
||||||
t.div({className: labelClassString}, [text(label)]),
|
t.div({className: labelClassString}, [label]),
|
||||||
t.div({className: "RoomDetailsView_value"}, value)
|
t.div({className: "RoomDetailsView_value"}, value)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user