Let task links open a tab, and link the lead to inboxes for review
This commit is contained in:
Vendored
+1
-1
@@ -271,7 +271,7 @@ function link(href, children) {
|
||||
if (/^https?:\/\//i.test(href)) {
|
||||
return h("a", { href, target: "_blank", rel: "noopener noreferrer" }, ...children);
|
||||
}
|
||||
const task = /^#\/task\/(\w+)$/.exec(href);
|
||||
const task = /^#\/task\/(\w+)(\/\w+)?$/.exec(href);
|
||||
if (task) {
|
||||
return h("a", { href, class: "task-link", style: taskStyle(task[1]) }, ...children);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user