diff --git a/src/Attendee.vue b/src/Attendee.vue
index 6a7930d..e0b1b7d 100644
--- a/src/Attendee.vue
+++ b/src/Attendee.vue
@@ -3,7 +3,7 @@
person
{{ attendee.name }}
-
+
@@ -45,7 +45,8 @@ export default {
data: function () {
return {
- edit: false
+ edit: false,
+ expandedNote: false
}
},
@@ -95,6 +96,18 @@ export default {
}).then((json) => {
this.$emit('updated');
});
+ },
+
+ toggleNotes() {
+ if (!this.expandedNote) {
+ $(this.$refs.attendeeNotes.$el).find('p').css('text-overflow', 'initial');
+ $(this.$refs.attendeeNotes.$el).find('p').css('white-space', 'initial');
+ this.expandedNote = true;
+ } else {
+ $(this.$refs.attendeeNotes.$el).find('p').css('text-overflow', 'ellipsis');
+ $(this.$refs.attendeeNotes.$el).find('p').css('white-space', 'nowrap');
+ this.expandedNote = false;
+ }
}
},