Skip to content

Commit 5952909

Browse files
authored
Publisher Command Center: Add link to access page in a collaborators section (#129)
* Add Collaborators component * Add Collaborators section to Edit page * Update link text in Collaborators
1 parent 640a637 commit 5952909

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import m from "mithril";
2+
3+
import Content from "../models/Content";
4+
5+
export default {
6+
view: function () {
7+
const content = Content.data;
8+
const accessUrl = content?.dashboard_url ? `${content.dashboard_url}/access` : "#";
9+
10+
return m(".pt-3.border-top", [
11+
m(".", [
12+
m("h5", "Collaborators"),
13+
m(
14+
"p",
15+
m("small.text-body-secondary.align-items-center", [
16+
m(".fa-solid.fa-user-lock"),
17+
" ",
18+
m("a", { href: accessUrl, target: "_blank" }, "See Collaborators and Manage Access"),
19+
])
20+
),
21+
]),
22+
]);
23+
},
24+
};

extensions/publisher-command-center/src/views/Edit.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import About from "../components/About";
55
import Releases from "../components/Releases";
66
import Processes from "../components/Processes";
77
import Author from "../components/Author";
8-
8+
import Collaborators from "../components/Collaborators";
99
import Languages from "../components/Languages";
1010

1111
const Edit = {
@@ -72,6 +72,9 @@ const Edit = {
7272
m(Author, {
7373
content_id: content?.guid,
7474
}),
75+
m(Collaborators, {
76+
content_id: content?.guid,
77+
}),
7578
m(Releases, {
7679
content_id: content?.guid,
7780
}),

0 commit comments

Comments
 (0)