Skip to content

Commit

Permalink
debug: allow to add remote users via frontend
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Feb 5, 2024
1 parent 78a2fd1 commit 8c664fe
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,15 @@ export default {
},
addableRemotes() {
return this.searchResults.filter((item) => item.source === 'remotes')
// TODO remove when Federation feature is ready
.concat(OC.debug
? this.addableUsers.map(user => ({
...user,
id: user.id + '@' + window.location.host,
label: user.id + '@' + window.location.host,
source: 'remotes',
}))
: [])
},

displaySearchHint() {
Expand Down

0 comments on commit 8c664fe

Please sign in to comment.