summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica <jessica@Absolventas-MacBook-Pro.local>2018-09-11 15:06:22 +0200
committerJessica <jessica@Absolventas-MacBook-Pro.local>2018-09-11 15:06:22 +0200
commit897bc3b6607aaae2f18f985160d2a767e60bba74 (patch)
tree552d6b1b4feed9377a8ea1b6b1e18fae9bc0467c
parentc9155e4d44f012de649ad04a13901fba7a69c58a (diff)
changed code using enabled which should use readOnly
-rw-r--r--src/components/ContactDetails.vue10
-rw-r--r--src/components/ContentList/ContentListItem.vue2
-rw-r--r--src/views/Contacts.vue2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue
index 0b506716..13f341f5 100644
--- a/src/components/ContactDetails.vue
+++ b/src/components/ContactDetails.vue
@@ -52,17 +52,17 @@
<!-- fullname, org, title -->
<div id="contact-header-infos">
<h2>
- <input id="contact-fullname" v-model="contact.fullName" :disabled="!contact.addressbook.enabled"
+ <input id="contact-fullname" v-model="contact.fullName" :disabled="!contact.addressbook.readOnly"
:placeholder="t('contacts', 'Name')" type="text" autocomplete="off"
autocorrect="off" spellcheck="false" name="fullname"
value="" @input="debounceUpdateContact">
</h2>
<div id="details-org-container">
- <input id="contact-org" v-model="contact.org" :disabled="!contact.addressbook.enabled"
+ <input id="contact-org" v-model="contact.org" :disabled="!contact.addressbook.readOnly"
:placeholder="t('contacts', 'Company')" type="text" autocomplete="off"
autocorrect="off" spellcheck="false" name="org"
value="" @input="debounceUpdateContact">
- <input id="contact-title" v-model="contact.title" :disabled="!contact.addressbook.enabled"
+ <input id="contact-title" v-model="contact.title" :disabled="!contact.addressbook.readOnly"
:placeholder="t('contacts', 'Title')" type="text" autocomplete="off"
autocorrect="off" spellcheck="false" name="title"
value="" @input="debounceUpdateContact">
@@ -175,7 +175,7 @@ export default {
href: this.contact.url
}
]
- if (this.contact.addressbook.enabled) {
+ if (this.contact.addressbook.readOnly) {
actions.push({
icon: 'icon-delete',
text: t('contacts', 'Delete'),
@@ -214,7 +214,7 @@ export default {
// store getters filtered and mapped to usable object
addressbooksOptions() {
return this.addressbooks
- .filter(addressbook => addressbook.enabled)
+ .filter(addressbook => addressbook.readOnly)
.map(addressbook => {
return {
id: addressbook.id,
diff --git a/src/components/ContentList/ContentListItem.vue b/src/components/ContentList/ContentListItem.vue
index 6c2ccdbf..ee3dfe75 100644
--- a/src/components/ContentList/ContentListItem.vue
+++ b/src/components/ContentList/ContentListItem.vue
@@ -10,7 +10,7 @@
<div :style="{ 'backgroundColor': colorAvatar }" class="app-content-list-item-icon">{{ contact.displayName | firstLetter }}</div>
<div class="app-content-list-item-line-one">{{ contact.displayName }}</div>
<div v-if="contact.email" class="app-content-list-item-line-two">{{ contact.email }}</div>
- <div v-if="contact.addressbook.enabled" class="icon-delete" tabindex="0"
+ <div v-if="contact.addressbook.readOnly" class="icon-delete" tabindex="0"
@click.prevent.stop="deleteContact" @keypress.enter.prevent.stop="deleteContact" />
</div>
</template>
diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue
index f39ef934..a244fb82 100644
--- a/src/views/Contacts.vue
+++ b/src/views/Contacts.vue
@@ -108,7 +108,7 @@ export default {
},
// first enabled addressbook of the list
defaultAddressbook() {
- return this.addressbooks.find(addressbook => addressbook.enabled)
+ return this.addressbooks.find(addressbook => addressbook.readOnly)
},
/**