Skip to content

Commit

Permalink
Rename InviteCollaboratorForm SavingButton Title for Spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Apr 25, 2022
1 parent c2c4da3 commit 14d3cc4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
/>
<oc-button v-if="saving" key="new-collaborator-saving-button" :disabled="true">
<oc-spinner :aria-label="$gettext('Creating share')" size="small" />
<span v-translate :aria-hidden="true">Share</span>
<span v-translate :aria-hidden="true" v-text="savingButtonTitle" />
</oc-button>
<oc-button
v-else
Expand All @@ -68,7 +68,7 @@
appearance="filled"
submit="submit"
@click="share"
v-text="$gettext('Share')"
v-text="$gettext(savingButtonTitle)"
/>
</div>
<oc-hidden-announcer level="assertive" :announcement="announcement" />
Expand Down Expand Up @@ -106,11 +106,20 @@ export default {
RecipientContainer,
ExpirationDatepicker
},
props: {
savingButtonTitle: {
type: String,
required: false,
default: 'Share'
}
},
setup() {
return {
hasResharing: useCapabilityFilesSharingResharing()
}
},
data() {
return {
autocompleteResults: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
<div id="oc-files-sharing-sidebar" class="oc-position-relative">
<oc-loader v-if="sharesLoading" :aria-label="$gettext('Loading members')" />
<template v-else>
<invite-collaborator-form v-if="currentUserCanShare" key="new-collaborator" class="oc-my-s" />
<invite-collaborator-form
v-if="currentUserCanShare"
key="new-collaborator"
saving-button-title="Add"
class="oc-my-s"
/>
<template v-if="hasCollaborators">
<ul
id="files-collaborators-list"
Expand Down

0 comments on commit 14d3cc4

Please sign in to comment.