Skip to content

Commit

Permalink
Address PR issues, Linting, Fix Unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Apr 25, 2022
1 parent 14d3cc4 commit 71df8df
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 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" v-text="savingButtonTitle" />
<span v-translate :aria-hidden="true" v-text="saveButtonLabel" />
</oc-button>
<oc-button
v-else
Expand All @@ -68,7 +68,7 @@
appearance="filled"
submit="submit"
@click="share"
v-text="$gettext(savingButtonTitle)"
v-text="$gettext(saveButtonLabel)"
/>
</div>
<oc-hidden-announcer level="assertive" :announcement="announcement" />
Expand Down Expand Up @@ -107,7 +107,7 @@ export default {
ExpirationDatepicker
},
props: {
savingButtonTitle: {
saveButtonLabel: {
type: String,
required: false,
default: '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="Add"
:saving-button-title="$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[`FileShares if currentUser can not share initially renders no share perm
exports[`FileShares if currentUser can share initially renders add people dialog 1`] = `
<div id="oc-files-sharing-sidebar" class="oc-position-relative">
<h3 class="oc-text-bold oc-m-rm oc-text-initial" data-msgid="Share with people" data-current-language="en_US">Share with people</h3>
<invite-collaborator-form-stub class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Share" class="oc-my-s"></invite-collaborator-form-stub>
<!---->
<!---->
<!---->
Expand All @@ -23,7 +23,7 @@ exports[`FileShares if currentUser can share initially renders add people dialog
exports[`FileShares if there are collaborators present correctly passes the shared parent route to the collaborator list item 1`] = `
<div id="oc-files-sharing-sidebar" class="oc-position-relative">
<h3 class="oc-text-bold oc-m-rm oc-text-initial" data-msgid="Share with people" data-current-language="en_US">Share with people</h3>
<invite-collaborator-form-stub class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Share" class="oc-my-s"></invite-collaborator-form-stub>
<div class="avatars-wrapper oc-flex oc-flex-middle oc-flex-between">
<h4 class="oc-text-initial oc-text-bold oc-my-rm">Shared with</h4>
<oc-button-stub type="button" size="medium" arialabel="Collapse list of invited people" submit="button" variation="passive" appearance="raw" justifycontent="center" gapsize="medium" data-testid="collaborators-show-people">
Expand All @@ -42,7 +42,7 @@ exports[`FileShares if there are collaborators present correctly passes the shar
exports[`FileShares if there are collaborators present renders sharedWithLabel and sharee list 1`] = `
<div id="oc-files-sharing-sidebar" class="oc-position-relative">
<h3 class="oc-text-bold oc-m-rm oc-text-initial" data-msgid="Share with people" data-current-language="en_US">Share with people</h3>
<invite-collaborator-form-stub class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Share" class="oc-my-s"></invite-collaborator-form-stub>
<div class="avatars-wrapper oc-flex oc-flex-middle oc-flex-between">
<h4 class="oc-text-initial oc-text-bold oc-my-rm">Shared with</h4>
<oc-button-stub type="button" size="medium" arialabel="Collapse list of invited people" submit="button" variation="passive" appearance="raw" justifycontent="center" gapsize="medium" data-testid="collaborators-show-people">
Expand All @@ -64,7 +64,7 @@ exports[`FileShares if there are collaborators present renders sharedWithLabel a
exports[`FileShares if there are no collaborators does not render avatar wrapper or collaborator list 1`] = `
<div id="oc-files-sharing-sidebar" class="oc-position-relative">
<h3 class="oc-text-bold oc-m-rm oc-text-initial" data-msgid="Share with people" data-current-language="en_US">Share with people</h3>
<invite-collaborator-form-stub class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Share" class="oc-my-s"></invite-collaborator-form-stub>
<!---->
<!---->
<!---->
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 class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Share" saving-button-title="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 class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Share" saving-button-title="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 class="oc-my-s"></invite-collaborator-form-stub>
<invite-collaborator-form-stub savebuttonlabel="Share" saving-button-title="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 71df8df

Please sign in to comment.