(s)
| 937 | // Write changes to settings. |
| 938 | // |
| 939 | async changeSetting(s) { |
| 940 | let val = this.settings[s.name] |
| 941 | if (s.name.startsWith('mode-')) { |
| 942 | val = val ? null : s.value |
| 943 | } else { |
| 944 | val = s.value |
| 945 | } |
| 946 | this.settings[s.name] = val |
| 947 | this.update({op: 'replace', path: `/settings`, value: this.settings}) |
| 948 | return this.writeSynced({settings: this.settings}) |
| 949 | }, |
| 950 | |
| 951 | // |
| 952 | // Remove a follow. |
nothing calls this directly
no test coverage detected