Skip to content

Commit

Permalink
[full-ci] fixes owncloud#8940 (owncloud#8942)
Browse files Browse the repository at this point in the history
rephrase internal role labels

---------

Co-authored-by: Jannik Stehle <[email protected]>
  • Loading branch information
hurradieweltgehtunter and JammingBen authored Apr 27, 2023
1 parent 4762eaf commit 32e8ded
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default defineComponent({
},
inviteLabel() {
if (this.selectedRole.hasCustomPermissions) {
return this.$gettext('Invite with custom permissions')
return this.$gettext('Custom permissions')
} else if (this.selectedRole.permissions().includes(SharePermissions.denied)) {
return this.$gettext('Deny access')
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ exports[`RoleDropdown renders a button with existing role if given for resource
<li>
<oc-button-stub appearance="raw" class="files-recipient-role-drop-btn oc-p-s" disabled="false" gapsize="medium" id="files-recipient-role-drop-btn-custom" justifycontent="space-between" size="medium" submit="button" type="button" variation="passive">
<span class="oc-flex oc-flex-middle">
<oc-icon-stub accessiblelabel="" class="oc-pl-s oc-pr-m" color="" filltype="fill" name="file-settings" size="medium" type="span" variation="inherit"></oc-icon-stub>
<oc-icon-stub accessiblelabel="" class="oc-pl-s oc-pr-m" color="" filltype="fill" name="settings-3" size="medium" type="span" variation="inherit"></oc-icon-stub>
<role-item-stub allowsharepermission="true" role="[object Object]"></role-item-stub>
</span>
<span class="oc-flex">
Expand Down Expand Up @@ -103,7 +103,7 @@ exports[`RoleDropdown renders a button with existing role if given for resource
<li>
<oc-button-stub appearance="raw" class="files-recipient-role-drop-btn oc-p-s" disabled="false" gapsize="medium" id="files-recipient-role-drop-btn-custom" justifycontent="space-between" size="medium" submit="button" type="button" variation="passive">
<span class="oc-flex oc-flex-middle">
<oc-icon-stub accessiblelabel="" class="oc-pl-s oc-pr-m" color="" filltype="fill" name="file-settings" size="medium" type="span" variation="inherit"></oc-icon-stub>
<oc-icon-stub accessiblelabel="" class="oc-pl-s oc-pr-m" color="" filltype="fill" name="settings-3" size="medium" type="span" variation="inherit"></oc-icon-stub>
<role-item-stub allowsharepermission="true" role="[object Object]"></role-item-stub>
</span>
<span class="oc-flex">
Expand Down Expand Up @@ -173,7 +173,7 @@ exports[`RoleDropdown renders a button with invite text if no existing role give
<li>
<oc-button-stub appearance="raw" class="files-recipient-role-drop-btn oc-p-s" disabled="false" gapsize="medium" id="files-recipient-role-drop-btn-custom" justifycontent="space-between" size="medium" submit="button" type="button" variation="passive">
<span class="oc-flex oc-flex-middle">
<oc-icon-stub accessiblelabel="" class="oc-pl-s oc-pr-m" color="" filltype="fill" name="file-settings" size="medium" type="span" variation="inherit"></oc-icon-stub>
<oc-icon-stub accessiblelabel="" class="oc-pl-s oc-pr-m" color="" filltype="fill" name="settings-3" size="medium" type="span" variation="inherit"></oc-icon-stub>
<role-item-stub allowsharepermission="true" role="[object Object]"></role-item-stub>
</span>
<span class="oc-flex">
Expand Down Expand Up @@ -237,7 +237,7 @@ exports[`RoleDropdown renders a button with invite text if no existing role give
<li>
<oc-button-stub appearance="raw" class="files-recipient-role-drop-btn oc-p-s" disabled="false" gapsize="medium" id="files-recipient-role-drop-btn-custom" justifycontent="space-between" size="medium" submit="button" type="button" variation="passive">
<span class="oc-flex oc-flex-middle">
<oc-icon-stub accessiblelabel="" class="oc-pl-s oc-pr-m" color="" filltype="fill" name="file-settings" size="medium" type="span" variation="inherit"></oc-icon-stub>
<oc-icon-stub accessiblelabel="" class="oc-pl-s oc-pr-m" color="" filltype="fill" name="settings-3" size="medium" type="span" variation="inherit"></oc-icon-stub>
<role-item-stub allowsharepermission="true" role="[object Object]"></role-item-stub>
</span>
<span class="oc-flex">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`DetailsAndEdit component if user can edit renders dropdown and edit but
<span class="oc-flex oc-flex-middle">
<oc-icon-stub accessiblelabel="" class="oc-pl-s oc-pr-m" color="" filltype="fill" name="user" size="medium" type="span" variation="inherit"></oc-icon-stub>
<span>
<span class="oc-text-bold oc-display-block oc-width-1-1">Internal</span>
<span class="oc-text-bold oc-display-block oc-width-1-1">Invited People</span>
<span class="oc-text-small">Link works only for invited people. Login is required.</span>
</span>
</span>
Expand Down
18 changes: 10 additions & 8 deletions packages/web-client/src/helpers/share/role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@ export const peopleRoleCustomFile = new CustomShareRole(
false,
$gettext('Custom permissions'),
$gettext('custom permissions'),
'file-settings',
'settings-3',
[SharePermissions.read, SharePermissions.update, SharePermissions.share]
)
export const peopleRoleCustomFolder = new CustomShareRole(
'custom',
true,
$gettext('Custom permissions'),
$gettext('custom permissions'),
'file-settings',
'settings-3',
[
SharePermissions.read,
SharePermissions.update,
Expand All @@ -203,18 +203,20 @@ export const peopleRoleDenyFolder = new PeopleShareRole(
export const linkRoleInternalFile = new LinkShareRole(
'internal',
false,
$gettext('Internal'),
$gettext('internal'),
$gettext('Invited People'),
$gettext('invited People'),
'user',
[SharePermissions.internal]
[SharePermissions.internal],
$gettext('Only for invited people')
)
export const linkRoleInternalFolder = new LinkShareRole(
'internal',
true,
$gettext('Internal'),
$gettext('internal'),
$gettext('Invited people'),
$gettext('invited people'),
'user',
[SharePermissions.internal]
[SharePermissions.internal],
$gettext('Only for invited people')
)
export const linkRoleViewerFile = new LinkShareRole(
'viewer',
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/support/objects/app-files/link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Link {
}

roleDisplayText = {
internal: 'Internal',
internal: 'Only for invited people',
viewer: 'Anyone with the link can view',
contributor: 'Anyone with the link can upload',
editor: 'Anyone with the link can edit',
Expand Down

0 comments on commit 32e8ded

Please sign in to comment.