show json in one line when clearing cache
also make naming consistent
This commit is contained in:
parent
738b8202be
commit
d073f2825b
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Reference in a new issue