show json in one line when clearing cache

also make naming consistent
This commit is contained in:
Bruno Windels 2019-10-24 10:54:20 +02:00
parent 738b8202be
commit d073f2825b
2 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ class SessionItemViewModel extends EventEmitter {
get json() { get json() {
if (this._showJSON) { if (this._showJSON) {
return JSON.stringify(this._sessionInfo, undefined, 2); return JSON.stringify(this._sessionInfo);
} }
return null; return null;
} }

View file

@ -1,7 +1,7 @@
import ListView from "../general/ListView.js"; import ListView from "../general/ListView.js";
import TemplateView from "../general/TemplateView.js"; import TemplateView from "../general/TemplateView.js";
class SessionPickerItem extends TemplateView { class SessionPickerItemView extends TemplateView {
constructor(vm) { constructor(vm) {
super(vm, true); super(vm, true);
this._onDeleteClick = this._onDeleteClick.bind(this); this._onDeleteClick = this._onDeleteClick.bind(this);
@ -52,7 +52,7 @@ export default class SessionPickerView extends TemplateView {
} }
}, },
}, sessionInfo => { }, sessionInfo => {
return new SessionPickerItem(sessionInfo); return new SessionPickerItemView(sessionInfo);
}); });
return super.mount(); return super.mount();
} }