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() {
if (this._showJSON) {
return JSON.stringify(this._sessionInfo, undefined, 2);
return JSON.stringify(this._sessionInfo);
}
return null;
}

View File

@ -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();
}