Skip to content

Commit

Permalink
CERN-specific share tooltip captions
Browse files Browse the repository at this point in the history
  • Loading branch information
javfg committed May 23, 2022
1 parent d7a8171 commit 83e40ff
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: CERN-specific help in shares tooltip

We've added some CERN-related help strings to the share tooltip.

https://github.com/owncloud/web/pull/7034
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ import { clientService } from 'web-pkg/src/services'
import { useCapabilityFilesSharingResharing } from 'web-pkg/src/composables'
import {
shareInviteCollaboratorHelp,
shareInviteCollaboratorHelpCern,
shareSpaceAddMemberHelp
} from '../../../../../helpers/contextualHelpers.js'
Expand Down Expand Up @@ -147,7 +148,13 @@ export default {
},
inviteCollaboratorHelp() {
return shareInviteCollaboratorHelp
const cernFeatures = !!this.configuration?.options?.cernFeatures
return cernFeatures
? {
text: shareInviteCollaboratorHelp.text,
list: [...shareInviteCollaboratorHelp.list, ...shareInviteCollaboratorHelpCern.list]
}
: shareInviteCollaboratorHelp
},
spaceAddMemberHelp() {
Expand All @@ -158,7 +165,10 @@ export default {
if (this.capabilities.files_sharing.federation?.outgoing === true) {
return this.$gettext('Add new person by name, email or federation IDs')
}
return this.$gettext('Add new person by name or email')
const cernFeatures = !!this.configuration?.options?.cernFeatures
return cernFeatures
? this.$gettext('Add new person by name, email or service/secondary/guest accounts')
: this.$gettext('Add new person by name or email')
},
$_announcementWhenCollaboratorAdded() {
Expand Down
7 changes: 7 additions & 0 deletions packages/web-app-files/src/helpers/contextualHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ export const shareInviteCollaboratorHelp = {
$gettext('Invited persons can not see who else has access')
]
}
export const shareInviteCollaboratorHelpCern = {
list: [
$gettext(
'To search for service or secondary accounts prefix the username with "a:" (like "a:doe") and for guest accounts prefix the username with "l:" (like "l:doe")'
)
]
}
export const shareSpaceAddMemberHelp = {
text: $gettext('Add persons or groups as members to this Space. Members are allowed to:'),
list: [
Expand Down

0 comments on commit 83e40ff

Please sign in to comment.