Skip to content

Commit

Permalink
Resolve PR issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Apr 28, 2022
1 parent 608cab8 commit 13b5368
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ import {
shareSpaceAddMemberHelp
} from '../../../../../helpers/contextualHelpers.js'
// just a dummy function to trick gettext tools
const $gettext = (str) => {
return str
}
export default {
name: 'InviteCollaboratorForm',
components: {
Expand All @@ -110,7 +115,7 @@ export default {
saveButtonLabel: {
type: String,
required: false,
default: () => this.$gettext('Share')
default: () => $gettext('Share')
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<invite-collaborator-form
v-if="currentUserCanShare"
key="new-collaborator"
:saving-button-title="$gettext('Add')"
:save-button-label="$gettext('Add')"
class="oc-my-s"
/>
<template v-if="hasCollaborators">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`SpaceMembers if currentUser can not share other shares are listed, but

exports[`SpaceMembers if currentUser can share initially renders add people dialog 1`] = `
<div id="oc-files-sharing-sidebar" class="oc-position-relative">
<invite-collaborator-form-stub savebuttonlabel="Share" saving-button-title="Add" class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Add" class="oc-my-s"></invite-collaborator-form-stub>
<ul id="files-collaborators-list" aria-label="Space members" class="oc-list oc-list-divider oc-overflow-hidden oc-m-rm">
<li>
<collaborator-list-item-stub share="[object Object]"></collaborator-list-item-stub>
Expand All @@ -24,7 +24,7 @@ exports[`SpaceMembers if currentUser can share initially renders add people dial

exports[`SpaceMembers if currentUser is manager allows role edit of the current user if another user is manager 1`] = `
<div id="oc-files-sharing-sidebar" class="oc-position-relative">
<invite-collaborator-form-stub savebuttonlabel="Share" saving-button-title="Add" class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Add" class="oc-my-s"></invite-collaborator-form-stub>
<ul id="files-collaborators-list" aria-label="Space members" class="oc-list oc-list-divider oc-overflow-hidden oc-m-rm">
<li>
<collaborator-list-item-stub share="[object Object]" modifiable="true"></collaborator-list-item-stub>
Expand All @@ -41,7 +41,7 @@ exports[`SpaceMembers if currentUser is manager allows role edit of the current

exports[`SpaceMembers if currentUser is manager does not allow role edit of the current user if they are the only manager 1`] = `
<div id="oc-files-sharing-sidebar" class="oc-position-relative">
<invite-collaborator-form-stub savebuttonlabel="Share" saving-button-title="Add" class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Add" class="oc-my-s"></invite-collaborator-form-stub>
<ul id="files-collaborators-list" aria-label="Space members" class="oc-list oc-list-divider oc-overflow-hidden oc-m-rm">
<li>
<collaborator-list-item-stub share="[object Object]"></collaborator-list-item-stub>
Expand Down

0 comments on commit 13b5368

Please sign in to comment.