Server section all done

This commit is contained in:
MattIPv4
2020-04-28 19:53:59 +01:00
parent 97b28323c5
commit fc6fd025b7
7 changed files with 253 additions and 4 deletions

View File

@@ -58,7 +58,8 @@ limitations under the License.
methods: {
changes(tab) {
if (tab === 'presets') return ''; // Ignore changes from presets
const changes = Object.values(this.$props.data[tab]).filter(d => d.default !== d.computed).length;
const changes = Object.values(this.$props.data[tab])
.filter(d => d.enabled && d.default !== d.value).length;
if (changes) return ` (${changes.toLocaleString()})`;
return '';
},