Skip to content

Commit

Permalink
sharing popup code
Browse files Browse the repository at this point in the history
  • Loading branch information
psawalka committed Dec 17, 2024
1 parent d5f86da commit 752cbc2
Show file tree
Hide file tree
Showing 8 changed files with 520 additions and 4 deletions.
2 changes: 2 additions & 0 deletions l10n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"Your shares": "Ihre Freigaben",
"Links sent per E-mail": "Links per E-mail versandt",
"Links to Copy": "Links zum Kopieren",
"Send link by E-Mail": "Link per E-mail senden",
"Edit link permissions": "Jeder mit dem Link kann nur anzeigen",
"No shares created yet.": "Noch keine Freigaben erstellt.",
"Advanced permissions": "Erweiterte Berechtigungen",
"Allow resharing": "Weiterteilen erlauben",
Expand Down
2 changes: 2 additions & 0 deletions l10n/de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"Your shares": "Ihre Freigaben",
"Links sent per E-mail": "Links per E-mail versandt",
"Links to Copy": "Links zum Kopieren",
"Send link by E-Mail": "Link per E-mail senden",
"Edit link permissions": "Jeder mit dem Link kann nur anzeigen",
"No shares created yet.": "Noch keine Freigaben erstellt.",
"Advanced permissions": "Erweiterte Berechtigungen",
"Allow resharing": "Weiterteilen erlauben",
Expand Down
2 changes: 2 additions & 0 deletions l10n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"Links sent per E-mail": "Links sent per E-mail",
"Links to Copy": "Links to Copy",
"No shares created yet.": "No shares created yet.",
"Send link by E-Mail": "Send link by E-Mail",
"Edit link permissions": "Anyone with the Link can only view",
"Advanced permissions": "Advanced permissions",
"Allow resharing": "Allow resharing",
"Set download limit": "Set download limit",
Expand Down
2 changes: 2 additions & 0 deletions l10n/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"Links sent per E-mail": "Links sent per E-mail",
"Links to Copy": "Links to Copy",
"No shares created yet.": "No shares created yet.",
"Send link by E-Mail": "Send link by E-Mail",
"Edit link permissions": "Anyone with the Link can only view",
"Advanced permissions": "Advanced permissions",
"Allow resharing": "Allow resharing",
"Set download limit": "Set download limit",
Expand Down
4 changes: 2 additions & 2 deletions src/components/SharingInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

<template>
<div class="sharing-search">
<label v-if="canReshare" for="sharing-search-input">
<!-- <label v-if="canReshare" for="sharing-search-input">
{{ isSharedWithMe ? `${t('nmcsharing', 'Resharing is allowed')}. ` : '' }}
{{ t('nmcsharing', 'You can create links or send shares by mail. If you invite MagentaCLOUD users, you have more opportunities for collaboration.') }}
</label>
<label v-else>
{{ t('files_sharing', 'Resharing is not allowed') }}
</label>
</label> -->
<ul v-if="filteredEmailArr.length > 0" :style="{ display: 'flex', flexWrap: 'wrap' }">
<li v-for="(emailShare, index) in filteredEmailArr"
v-show="isShownArr[index].isVisible === true"
Expand Down
2 changes: 1 addition & 1 deletion src/files_sharing_tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ window.addEventListener('DOMContentLoaded', function() {
icon: 'icon-share',

async mount(el, fileInfo, context) {
const SharingTab = (await import('./views/SharingTab.vue')).default
const SharingTab = (await import('./views/SharingPopup.vue')).default

const View = Vue.extend(SharingTab)

Expand Down
6 changes: 5 additions & 1 deletion src/views/SharingLinkList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<template>
<ul v-if="canLinkShare && canReshare" class="sharing-link-list">
<OpenSharingModalButton :file-info="fileInfo" @add:share="addShare" />
<OpenSharingModalButton :file-info="fileInfo" @add:share="addShare" class="share-button"/>

Check failure on line 25 in src/views/SharingLinkList.vue

View workflow job for this annotation

GitHub Actions / eslint

Expected a space before '/>', but not found

<template v-if="hasMailShares">
<h1>
Expand Down Expand Up @@ -191,4 +191,8 @@ export default {
align-items: center;
min-height: 44px;
}
.share-button {
display: flex;
justify-content: end;
}
</style>
Loading

0 comments on commit 752cbc2

Please sign in to comment.