@@ -209,6 +209,12 @@
this.error(e, this)
})
},
+ relationKindTitle(kind, length) {
+ if (length > 1) {
+ return relationKinds[kind][1]
+ }
+ return relationKinds[kind][0]
+ }
},
}
diff --git a/src/models/relationKinds.json b/src/models/relationKinds.json
index 2129c6d3..79d5bd5a 100644
--- a/src/models/relationKinds.json
+++ b/src/models/relationKinds.json
@@ -1,13 +1,46 @@
{
- "subtask": "Subtask",
- "parenttask": "Parent Task",
- "related": "Related Task",
- "duplicateof": "Duplicate Of",
- "duplicates": "Duplicates",
- "blocking": "Blocking",
- "blocked": "Blocked By",
- "precedes": "Preceds",
- "follows": "Follows",
- "copiedfrom": "Copied From",
- "copiedto": "Copied To"
+ "subtask": [
+ "Subtask",
+ "Subtasks"
+ ],
+ "parenttask": [
+ "Parent Task",
+ "Parent Tasks"
+ ],
+ "related": [
+ "Related Task",
+ "Related Tasks"
+ ],
+ "duplicateof": [
+ "Duplicate Of",
+ "Duplicates Of"
+ ],
+ "duplicates": [
+ "Duplicates",
+ "Duplicates"
+ ],
+ "blocking": [
+ "Blocking",
+ "Blocking"
+ ],
+ "blocked": [
+ "Blocked By",
+ "Blocked By"
+ ],
+ "precedes": [
+ "Preceds",
+ "Preceds"
+ ],
+ "follows": [
+ "Follows",
+ "Follows"
+ ],
+ "copiedfrom": [
+ "Copied From",
+ "Copied From"
+ ],
+ "copiedto": [
+ "Copied To",
+ "Copied To"
+ ]
}
\ No newline at end of file