Commit 70a322c5 authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Support legacy last edited by case.

parent 4e77db39
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
class="discussion" class="discussion"
/> />
<issue-note-edited-text <issue-note-edited-text
v-if="lastUpdatedBy" v-if="lastUpdatedAt"
:edited-at="lastUpdatedAt" :edited-at="lastUpdatedAt"
:edited-by="lastUpdatedBy" :edited-by="lastUpdatedBy"
action-text="Last updated" action-text="Last updated"
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
:data-update-url="note.path" :data-update-url="note.path"
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_at"
:edited-at="note.last_edited_at" :edited-at="note.last_edited_at"
:edited-by="note.last_edited_by" :edited-by="note.last_edited_by"
action-text="Edited" action-text="Edited"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
}, },
editedBy: { editedBy: {
type: Object, type: Object,
required: true, required: false,
}, },
className: { className: {
type: String, type: String,
...@@ -35,11 +35,13 @@ ...@@ -35,11 +35,13 @@
:time="editedAt" :time="editedAt"
tooltip-placement="bottom" tooltip-placement="bottom"
/> />
by <template v-if="editedBy">
<a by
:href="editedBy.path" <a
class="js-vue-author author_link"> :href="editedBy.path"
{{editedBy.name}} class="js-vue-author author_link">
</a> {{editedBy.name}}
</a>
</template>
</div> </div>
</template> </template>
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