Skip to content

Commit

Permalink
Merge pull request #3066 from nextcloud/backport/3047/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: Rename Circle to Team
  • Loading branch information
susnux authored Jul 24, 2024
2 parents c2a5db4 + 4686036 commit 8b1814e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Command/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$output->writeln('<error>Unable to parse permissions input: ' . implode(' ', $permissionsString) . '</error>');
return -1;
}
$output->writeln('<error>group/circle not found: ' . $groupString . '</error>');
$output->writeln('<error>group/team not found: ' . $groupString . '</error>');
return -1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/settings/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class App extends Component<{}, AppState> implements OC.Plugin<OC.Search.
render() {
const isCirclesEnabled = loadState('groupfolders', 'isCirclesEnabled', false)
const groupHeader = isCirclesEnabled
? t('groupfolders', 'Group or circle')
? t('groupfolders', 'Group or team')
: t('groupfolders', 'Group')

const rows = this.state.folders
Expand Down
8 changes: 4 additions & 4 deletions src/settings/FolderGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface FolderGroupsProps {
export function FolderGroups({groups, allGroups = [], allCircles = [], onAddGroup, removeGroup, edit, showEdit, onSetPermissions}: FolderGroupsProps) {
const isCirclesEnabled = loadState('groupfolders', 'isCirclesEnabled', false)
const groupHeader = isCirclesEnabled
? t('groupfolders', 'Group or circle')
? t('groupfolders', 'Group or team')
: t('groupfolders', 'Group')

// Format the selected groups with the displayName
Expand Down Expand Up @@ -114,7 +114,7 @@ interface CircleGroupSelectProps {
function AdminGroupSelect({allGroups, allCircles, onChange}: CircleGroupSelectProps) {
const isCirclesEnabled = loadState('groupfolders', 'isCirclesEnabled', false)
const emptyGroups = isCirclesEnabled
? t('groupfolders', 'No other groups or circles available')
? t('groupfolders', 'No other groups or teams available')
: t('groupfolders', 'No other groups available')

if (allGroups.length === 0 && allCircles.length === 0) {
Expand All @@ -131,13 +131,13 @@ function AdminGroupSelect({allGroups, allCircles, onChange}: CircleGroupSelectPr
const circles = allCircles.map(circle => {
return {
value: circle.singleId,
label: t('groupfolders', '{displayName} (circle)', {...circle})
label: t('groupfolders', '{displayName} (team)', {...circle})
};
});
const options = [...groups, ...circles]

const placeholder = isCirclesEnabled
? t('groupfolders', 'Add group or circle')
? t('groupfolders', 'Add group or team')
: t('groupfolders', 'Add group')

/* @ts-expect-error Typescript error due to async react component */
Expand Down

0 comments on commit 8b1814e

Please sign in to comment.