Finilize VPC View support

This commit is contained in:
Borys_Levytskyi
2021-04-24 13:10:41 +03:00
parent 4e1b35a55b
commit 18272c712e
12 changed files with 157 additions and 99 deletions

View File

@@ -1,6 +1,6 @@
import log from 'loglevel';
const APP_VERSION = 6;
const APP_VERSION = 7;
export type PersistedAppData = {
emphasizeBytes: boolean;
@@ -59,6 +59,14 @@ export default class AppState {
this.triggerChanged();
}
removeResult(index: number) {
if(index < 0 || index >= this.commandResults.length)
return;
this.commandResults.splice(index, 1);
this.triggerChanged();
}
toggleEmphasizeBytes() {
this.emphasizeBytes = !this.emphasizeBytes;
this.triggerChanged();