From 99c0d7efc5a5b465e9ad55ad58e1f5c009134fdb Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 11 Sep 2020 09:05:04 +0200 Subject: [PATCH] frontend fixes --- frontend/src/locales/en.json | 5 ++++- frontend/src/registerServiceWorker.js | 1 - music_assistant/models/config_entry.py | 4 +++- music_assistant/player_manager.py | 8 ++++---- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 33fdf5f1..903b0605 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -78,7 +78,10 @@ "gapless_enabled" : "Enable gapless support", "crossfade_duration" : "Crossfade duration (in seconds, 0 to disable)", "power_control" : "Attach Power Control to player.", - "volume_control" : "Attach Volume Control to player." + "volume_control" : "Attach Volume Control to player.", + "security" : "Security", + "security_username" : "Username", + "security_password" : "Password" }, "players" : "Players", "play" : "Play", diff --git a/frontend/src/registerServiceWorker.js b/frontend/src/registerServiceWorker.js index 8a295084..ee051656 100644 --- a/frontend/src/registerServiceWorker.js +++ b/frontend/src/registerServiceWorker.js @@ -21,7 +21,6 @@ if (process.env.NODE_ENV === 'production') { }, updated () { alert('New content is available; please refresh.') - window.location.reload(true) }, offline () { alert('No internet connection found. App is running in offline mode.') diff --git a/music_assistant/models/config_entry.py b/music_assistant/models/config_entry.py index 5aface65..aa7781ae 100644 --- a/music_assistant/models/config_entry.py +++ b/music_assistant/models/config_entry.py @@ -13,7 +13,9 @@ class ConfigEntryType(str, Enum): PASSWORD = "password" INT = "integer" FLOAT = "float" - PLAYER_ID = "player_id" + LABEL = "label" + HEADER = "header" + @dataclass diff --git a/music_assistant/player_manager.py b/music_assistant/player_manager.py index 5d726766..9c7af47c 100755 --- a/music_assistant/player_manager.py +++ b/music_assistant/player_manager.py @@ -195,10 +195,10 @@ class PlayerManager: :param player_id: player_id of the player to handle the command. :param media_item: media item(s) that should be played (single item or list of items) :param queue_opt: - QueueOption.Play -> Insert new items in queue and start playing at the inserted position - QueueOption.Replace -> Replace queue contents with these items - QueueOption.Next -> Play item(s) after current playing item - QueueOption.Add -> Append new items at end of the queue + QueueOption.Play -> Insert new items in queue and start playing at inserted position + QueueOption.Replace -> Replace queue contents with these items + QueueOption.Next -> Play item(s) after current playing item + QueueOption.Add -> Append new items at end of the queue """ player = self._players[player_id] if not player: -- 2.34.1