diff --git a/src/util/link.js b/src/util/link.js index 713880a..4250ce0 100644 --- a/src/util/link.js +++ b/src/util/link.js @@ -15,6 +15,13 @@ export function ownerProjectsLink(ownertype, ownername) { return { name: ownertype + " projects", params: { ownername: ownername } } } +export function ownerSettingsLink(ownertype, ownername) { + if (ownertype == "user") { + return { name: ownertype + " settings", params: { username: ownername } } + } else if (ownertype == "org") { + return { name: ownertype + " settings", params: { orgname: ownername } } + } +} export function userLocalRunsLink(username) { return { name: "user local runs", params: { username: username } } @@ -28,9 +35,6 @@ export function userLocalRunTaskLink(username, runid, taskid) { return { name: "user local run task", params: { username: username, runid: runid, taskid: taskid } } } -export function userSettingsLink(username) { - return { name: "user settings", params: { username: username } } -} // Note, when creating a router link containing a project/projectgroup ref (a // path), unfortunately, we cannot use route name and params since it will path diff --git a/src/views/Org.vue b/src/views/Org.vue index 084e742..be62ac7 100644 --- a/src/views/Org.vue +++ b/src/views/Org.vue @@ -26,6 +26,16 @@ + @@ -33,7 +43,11 @@ diff --git a/src/views/User.vue b/src/views/User.vue index e05a8b6..592708b 100644 --- a/src/views/User.vue +++ b/src/views/User.vue @@ -69,7 +69,7 @@