mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
show json in one line when clearing cache
also make naming consistent
This commit is contained in:
parent
738b8202be
commit
d073f2825b
@ -69,7 +69,7 @@ class SessionItemViewModel extends EventEmitter {
|
||||
|
||||
get json() {
|
||||
if (this._showJSON) {
|
||||
return JSON.stringify(this._sessionInfo, undefined, 2);
|
||||
return JSON.stringify(this._sessionInfo);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import ListView from "../general/ListView.js";
|
||||
import TemplateView from "../general/TemplateView.js";
|
||||
|
||||
class SessionPickerItem extends TemplateView {
|
||||
class SessionPickerItemView extends TemplateView {
|
||||
constructor(vm) {
|
||||
super(vm, true);
|
||||
this._onDeleteClick = this._onDeleteClick.bind(this);
|
||||
@ -52,7 +52,7 @@ export default class SessionPickerView extends TemplateView {
|
||||
}
|
||||
},
|
||||
}, sessionInfo => {
|
||||
return new SessionPickerItem(sessionInfo);
|
||||
return new SessionPickerItemView(sessionInfo);
|
||||
});
|
||||
return super.mount();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user