frontend fixes
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 11 Sep 2020 07:05:04 +0000 (09:05 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 11 Sep 2020 07:05:04 +0000 (09:05 +0200)
frontend/src/locales/en.json
frontend/src/registerServiceWorker.js
music_assistant/models/config_entry.py
music_assistant/player_manager.py

index 33fdf5f180fe1140a002ecdb3bbb6500fc892a44..903b0605a2aac6682a35c11c33fb0cdcf259ce5c 100644 (file)
     "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",
index 8a29508462a595253d8a76acc9458a8eb38277cf..ee051656c2db5acfedaa4c30d9360d832bb6d650 100644 (file)
@@ -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.')
index 5aface6574e4a3f6a53b8197ca1106a06a208c19..aa7781aea645ec8a036ba88df71560bbca2aa0dc 100644 (file)
@@ -13,7 +13,9 @@ class ConfigEntryType(str, Enum):
     PASSWORD = "password"
     INT = "integer"
     FLOAT = "float"
-    PLAYER_ID = "player_id"
+    LABEL = "label"
+    HEADER = "header"
+
 
 
 @dataclass
index 5d7267663c93a5ad601fdc344d8c224301d28f9b..9c7af47c7ee6facb7ed021365caae3ca8bed520c 100755 (executable)
@@ -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: