Commit a2326c8a authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: kebab-case all Vue data bindings.

parent 787616d4
...@@ -161,10 +161,10 @@ export default { ...@@ -161,10 +161,10 @@ export default {
<div class="timeline-icon hidden-xs hidden-sm"> <div class="timeline-icon hidden-xs hidden-sm">
<user-avatar-link <user-avatar-link
v-if="author" v-if="author"
:linkHref="author.path" :link-href="author.path"
:imgSrc="author.avatar_url" :img-src="author.avatar_url"
:imgAlt="author.name" :img-alt="author.name"
:imgSize="40" /> :img-size="40" />
</div> </div>
<div class="js-main-target-form timeline-content timeline-content-form common-note-form"> <div class="js-main-target-form timeline-content timeline-content-form common-note-form">
<markdown-field <markdown-field
......
...@@ -109,25 +109,25 @@ export default { ...@@ -109,25 +109,25 @@ export default {
<div class="timeline-entry-inner"> <div class="timeline-entry-inner">
<div class="timeline-icon"> <div class="timeline-icon">
<user-avatar-link <user-avatar-link
:linkHref="author.path" :link-href="author.path"
:imgSrc="author.avatar_url" :img-src="author.avatar_url"
:imgAlt="author.name" :img-alt="author.name"
:imgSize="40" /> :img-size="40" />
</div> </div>
<div class="timeline-content"> <div class="timeline-content">
<div class="discussion"> <div class="discussion">
<div class="discussion-header"> <div class="discussion-header">
<issue-note-header <issue-note-header
:author="author" :author="author"
:createdAt="discussion.created_at" :created-at="discussion.created_at"
:noteId="discussion.id" :note-id="discussion.id"
:includeToggle="true" :include-toggle="true"
:toggleHandler="toggleDiscussion" :toggle-handler="toggleDiscussion"
actionText="started a discussion" /> actionText="started a discussion" />
<issue-note-edited-text <issue-note-edited-text
v-if="note.last_updated_by" v-if="note.last_updated_by"
:editedAt="note.last_updated_at" :edited-at="note.last_updated_at"
:editedBy="note.last_updated_by" :edited-by="note.last_updated_by"
actionText="Last updated" actionText="Last updated"
className="discussion-headline-light js-discussion-headline" /> className="discussion-headline-light js-discussion-headline" />
</div> </div>
...@@ -155,8 +155,8 @@ export default { ...@@ -155,8 +155,8 @@ export default {
<issue-note-form <issue-note-form
v-if="isReplying" v-if="isReplying"
saveButtonTitle="Comment" saveButtonTitle="Comment"
:updateHandler="saveReply" :update-handler="saveReply"
:cancelHandler="cancelReplyForm" :cancel-handler="cancelReplyForm"
ref="noteForm" /> ref="noteForm" />
<issue-note-signed-out-widget v-if="!canReply" /> <issue-note-signed-out-widget v-if="!canReply" />
</div> </div>
......
...@@ -121,35 +121,35 @@ export default { ...@@ -121,35 +121,35 @@ export default {
<div class="timeline-entry-inner"> <div class="timeline-entry-inner">
<div class="timeline-icon"> <div class="timeline-icon">
<user-avatar-link <user-avatar-link
:linkHref="author.path" :link-href="author.path"
:imgSrc="author.avatar_url" :img-src="author.avatar_url"
:imgAlt="author.name" :img-alt="author.name"
:imgSize="40" /> :img-size="40" />
</div> </div>
<div class="timeline-content"> <div class="timeline-content">
<div class="note-header"> <div class="note-header">
<issue-note-header <issue-note-header
:author="author" :author="author"
:createdAt="note.created_at" :created-at="note.created_at"
:noteId="note.id" :note-id="note.id"
actionText="commented" /> actionText="commented" />
<issue-note-actions <issue-note-actions
:authorId="author.id" :author-id="author.id"
:noteId="note.id" :note-id="note.id"
:accessLevel="note.human_access" :access-level="note.human_access"
:canEdit="note.current_user.can_edit" :can-edit="note.current_user.can_edit"
:canDelete="note.current_user.can_edit" :can-delete="note.current_user.can_edit"
:canReportAsAbuse="canReportAsAbuse" :can-report-as-abuse="canReportAsAbuse"
:reportAbusePath="note.report_abuse_path" :report-abuse-path="note.report_abuse_path"
:editHandler="editHandler" :edit-handler="editHandler"
:deleteHandler="deleteHandler" /> :delete-handler="deleteHandler" />
</div> </div>
<issue-note-body <issue-note-body
:note="note" :note="note"
:canEdit="note.current_user.can_edit" :can-edit="note.current_user.can_edit"
:isEditing="isEditing" :is-editing="isEditing"
:formUpdateHandler="formUpdateHandler" :form-update-handler="formUpdateHandler"
:formCancelHandler="formCancelHandler" :form-cancel-handler="formCancelHandler"
ref="noteBody" /> ref="noteBody" />
</div> </div>
</div> </div>
......
...@@ -78,10 +78,10 @@ export default { ...@@ -78,10 +78,10 @@ export default {
<issue-note-form <issue-note-form
v-if="isEditing" v-if="isEditing"
ref="noteForm" ref="noteForm"
:updateHandler="handleFormUpdate" :update-handler="handleFormUpdate"
:cancelHandler="formCancelHandler" :cancel-handler="formCancelHandler"
:noteBody="noteBody" :note-body="noteBody"
:noteId="note.id" /> :note-id="note.id" />
<textarea <textarea
v-if="canEdit" v-if="canEdit"
v-model="note.note" v-model="note.note"
...@@ -89,14 +89,14 @@ export default { ...@@ -89,14 +89,14 @@ export default {
class="hidden js-task-list-field"></textarea> class="hidden js-task-list-field"></textarea>
<issue-note-edited-text <issue-note-edited-text
v-if="note.last_edited_by" v-if="note.last_edited_by"
:editedAt="note.last_edited_at" :edited-at="note.last_edited_at"
:editedBy="note.last_edited_by" :edited-by="note.last_edited_by"
actionText="Edited" /> actionText="Edited" />
<issue-note-awards-list <issue-note-awards-list
v-if="note.award_emoji.length" v-if="note.award_emoji.length"
:noteId="note.id" :note-id="note.id"
:noteAuthorId="note.author.id" :note-author-id="note.author.id"
:awards="note.award_emoji" :awards="note.award_emoji"
:toggleAwardPath="note.toggle_award_path" /> :toggle-award-path="note.toggle_award_path" />
</div> </div>
</template> </template>
...@@ -38,6 +38,6 @@ export default { ...@@ -38,6 +38,6 @@ export default {
</a> </a>
<time-ago-tooltip <time-ago-tooltip
:time="editedAt" :time="editedAt"
tooltipPlacement="bottom" /> tooltip-placement="bottom" />
</div> </div>
</template> </template>
...@@ -45,9 +45,9 @@ export default { ...@@ -45,9 +45,9 @@ export default {
<div class="note-header"> <div class="note-header">
<issue-note-header <issue-note-header
:author="note.author" :author="note.author"
:createdAt="note.created_at" :created-at="note.created_at"
:noteId="note.id" :note-id="note.id"
:actionTextHtml="note.note_html" /> :action-text-html="note.note_html" />
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment