Resolve issue #11

Actually the disabled was reversed
This commit is contained in:
the-djmaze 2020-09-23 22:31:19 +02:00 committed by GitHub
parent 0181d9645a
commit e174248463
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ class ContactsAdminSettings {
this.contactsTypes = ko.observableArray([]);
this.contactsTypesOptions = ko.computed(() =>
this.contactsTypes().map(value => {
const disabled = supportedTypes.includes(value);
const disabled = !supportedTypes.includes(value);
return {
'id': value,
'name': getTypeName(value) + (disabled ? ' (' + i18n('HINTS/NOT_SUPPORTED') + ')' : ''),