home · contact · privacy
Fix bottle fullness indicator in web client.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 19 Dec 2020 04:10:04 +0000 (05:10 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 19 Dec 2020 04:10:04 +0000 (05:10 +0100)
rogue_chat.html

index 4e5da8b732f24bda544dec99d64f530d63f514e9..1847c0904ec9f7452efc718fa9265521e0bd7686 100644 (file)
@@ -1540,6 +1540,13 @@ let explorer = {
         if (t.installed) {
             info += "/installed";
         }
+        if (t.type_ == 'Bottle') {
+            if (t.thing_char == '_') {
+                info += '/empty';
+            } else if (t.thing_char == '~') {
+                info += '/full';
+            }
+        }
         if (detailed) {
             const protection = t.protection;
             if (protection != '.') {