Displaying group mute on load

This commit is contained in:
James Barnsley
2019-11-08 07:57:31 +13:00
parent 33d6c66d96
commit 0efa8a2277
5 changed files with 5455 additions and 9969 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -100,7 +100,7 @@
// Release details
// These are automatically injected to built HTML
var build = "1573068920";
var build = "1573150704";
var version = "3.42.2";
// Construct the script tag

View File

@ -119,8 +119,9 @@ const SnapcastGroups = (props) => {
{ icon: 'fitness_center', words: ['gym'] },
{ icon: 'emoji_food_beverage', words: ['kitchen'] },
{ icon: 'deck', words: ['deck', 'outside'] },
{ icon: 'restaurant_menu', words: ['dining'] },
{ icon: 'restaurant_menu', words: ['dining', 'dinner'] },
{ icon: 'laptop', words: ['laptop'] },
{ icon: 'bug_report', words: ['test', 'debug'] },
];
const name = group.name.toLowerCase();
for (let item of iconWords) {

View File

@ -879,8 +879,8 @@ export const formatGroup = function (data) {
}
}
if (group.mute === undefined && data.mute !== undefined) {
group.mute = data.mute;
if (group.mute === undefined && data.muted !== undefined) {
group.mute = data.muted;
}
return group;