From d073f2825ba3ebcd4ab85c3660d5338129fb8889 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 24 Oct 2019 10:54:20 +0200 Subject: [PATCH] show json in one line when clearing cache also make naming consistent --- src/domain/SessionPickerViewModel.js | 2 +- src/ui/web/login/SessionPickerView.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domain/SessionPickerViewModel.js b/src/domain/SessionPickerViewModel.js index c07a608a..2347dfe4 100644 --- a/src/domain/SessionPickerViewModel.js +++ b/src/domain/SessionPickerViewModel.js @@ -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; } diff --git a/src/ui/web/login/SessionPickerView.js b/src/ui/web/login/SessionPickerView.js index 2d2f81c2..c52aed31 100644 --- a/src/ui/web/login/SessionPickerView.js +++ b/src/ui/web/login/SessionPickerView.js @@ -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(); }