From 03bf4a9ef85e497b7624fa23f923475f93bee8b8 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 4 Oct 2020 12:11:05 -0700 Subject: [PATCH] Add default stream state icon --- .../default/current_activity_instance.html | 2 ++ data/interfaces/default/js/tables/history_table.js | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/data/interfaces/default/current_activity_instance.html b/data/interfaces/default/current_activity_instance.html index 4643af6e..3a4ace9c 100644 --- a/data/interfaces/default/current_activity_instance.html +++ b/data/interfaces/default/current_activity_instance.html @@ -410,6 +410,8 @@ DOCUMENTATION :: END   % elif data['state'] == 'error':   + % else: +   % endif
diff --git a/data/interfaces/default/js/tables/history_table.js b/data/interfaces/default/js/tables/history_table.js index 6f193464..2fae1f6f 100644 --- a/data/interfaces/default/js/tables/history_table.js +++ b/data/interfaces/default/js/tables/history_table.js @@ -55,15 +55,17 @@ history_table_options = { if (rowData['state'] !== null) { var state = ''; if (rowData['state'] === 'playing') { - state = ''; + state = ''; } else if (rowData['state'] === 'paused') { - state = ''; + state = ''; } else if (rowData['state'] === 'buffering') { - state = ''; + state = ''; } else if (rowData['state'] === 'error') { - state = ''; + state = ''; } else if (rowData['state'] === 'stopped') { - state = ''; + state = ''; + } else { + state = ''; } $(td).html('
' + state + ' ' + date + '
'); } else if (rowData['group_count'] > 1) {