nits, fixes

This commit is contained in:
Anton Bracke
2022-02-22 19:01:26 +01:00
parent e82de63b34
commit 454ee6cf4c
8 changed files with 26 additions and 30 deletions
-9
View File
@@ -41,15 +41,6 @@
}
main {
/* TODO */
background-color: #30343d;
/* background-color: #2b2f37; */
/* color: #62727c;
border: 1px solid #62727c; */
/* border-color: #e1e4e8;
color: #e1e4e8; */
}
</style>
-4
View File
@@ -21,10 +21,6 @@
return serverColors[i % serverColors.length];
}
selectedServer.subscribe((e) => {
console.log("selected server changed", e);
});
$: serverWithSelection = $servers.map((s) => ({ ...s, isSelected: $selectedServer === s._id }))
onMount(async () => {
+1 -1
View File
@@ -19,7 +19,7 @@
});
async function saveShortcut(key: keyof SettingsData["shortcuts"], value: string) {
const shortcuts = get(settings)['shortcuts'] || { "camera_toggle": "", "mute_toggle": "" };
const shortcuts = get(settings)['shortcuts'];
shortcuts[key] = value;
settings.update((s) => ({ ...s, shortcuts }));
await api.saveSetting("shortcuts", shortcuts);