From 06c9d0d7c65954d123fbd0a8e3faa6d5b4f985ff Mon Sep 17 00:00:00 2001 From: Torsten Simon Date: Sun, 19 Sep 2021 09:01:55 +0000 Subject: [PATCH] fix: Better status scene, now displaying error messages. --- src/contexts/RyzenAdjContext.tsx | 4 ++-- src/locales/de.json | 4 +++- src/locales/en.json | 4 +++- src/scenes/StatusScene.tsx | 41 +++++++++++++++++++++++++++++--- 4 files changed, 46 insertions(+), 7 deletions(-) diff --git a/src/contexts/RyzenAdjContext.tsx b/src/contexts/RyzenAdjContext.tsx index 8a52277..9e58694 100644 --- a/src/contexts/RyzenAdjContext.tsx +++ b/src/contexts/RyzenAdjContext.tsx @@ -230,9 +230,9 @@ export const ryzenAdjProcess = function(parameters: Array): Promise{i18n.failed}; + } + if (this._state === State.PermissionError) { + return

{i18n.permissions}

; + } if (Object.keys(this.data).length === 0) { - return

{i18n.noData}

; + return

{i18n.noData}

; } return (