Commit 80da247a authored by Fatih Acet's avatar Fatih Acet

Fix lock version for epics

parent e0c47610
...@@ -133,7 +133,8 @@ export default { ...@@ -133,7 +133,8 @@ export default {
}, },
lockVersion: { lockVersion: {
type: Number, type: Number,
required: true, required: false,
default: 0,
}, },
}, },
data() { data() {
......
...@@ -30,6 +30,7 @@ export default { ...@@ -30,6 +30,7 @@ export default {
'initialTitleText', 'initialTitleText',
'initialDescriptionHtml', 'initialDescriptionHtml',
'initialDescriptionText', 'initialDescriptionText',
'lockVersion',
]), ]),
}, },
}; };
...@@ -49,6 +50,7 @@ export default { ...@@ -49,6 +50,7 @@ export default {
:show-delete-button="canDestroy" :show-delete-button="canDestroy"
:initial-title-html="initialTitleHtml" :initial-title-html="initialTitleHtml"
:initial-title-text="initialTitleText" :initial-title-text="initialTitleText"
:lock-version="lockVersion"
:initial-description-html="initialDescriptionHtml" :initial-description-html="initialDescriptionHtml"
:initial-description-text="initialDescriptionText" :initial-description-text="initialDescriptionText"
:show-inline-edit-button="true" :show-inline-edit-button="true"
......
...@@ -33,6 +33,7 @@ export default () => ({ ...@@ -33,6 +33,7 @@ export default () => ({
initialTitleText: '', initialTitleText: '',
initialDescriptionHtml: '', initialDescriptionHtml: '',
initialDescriptionText: '', initialDescriptionText: '',
lockVersion: 0,
todoExists: false, todoExists: false,
startDateSourcingMilestoneTitle: '', startDateSourcingMilestoneTitle: '',
......
...@@ -30,6 +30,7 @@ module EpicsHelper ...@@ -30,6 +30,7 @@ module EpicsHelper
start_date: epic.due_date_sourcing_milestone&.start_date, start_date: epic.due_date_sourcing_milestone&.start_date,
due_date: epic.due_date_sourcing_milestone&.due_date due_date: epic.due_date_sourcing_milestone&.due_date
}, },
lock_version: epic.lock_version,
end_date: epic.end_date, end_date: epic.end_date,
state: epic.state, state: epic.state,
namespace: group.path, namespace: group.path,
......
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