Skip to content

Commit

Permalink
fix: hide upload button on public album shares
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
  • Loading branch information
st3iny committed Apr 25, 2023
1 parent 02e4826 commit e8f8cd6
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 29 deletions.
4 changes: 2 additions & 2 deletions js/photos-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-public.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions js/photos-src_components_Collection_CollectionContent_vue.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-src_views_AlbumContent_vue.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-src_views_AlbumContent_vue.js.map

Large diffs are not rendered by default.

19 changes: 12 additions & 7 deletions src/views/PublicAlbumContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- @copyright Copyright (c) 2022 Louis Chemineau <louis@chmn.me>
-
- @author Louis Chemineau <louis@chmn.me>
- @author Richard Steinmetz <richard@steinmetz.cloud>
-
- @license AGPL-3.0-or-later
-
Expand Down Expand Up @@ -72,15 +73,17 @@
<NcEmptyContent slot="empty-content"
:title="t('photos', 'This album does not have any photos or videos yet!')"
class="album__empty">
<ImagePlus slot="icon" />
<ImageOff slot="icon" />

<!-- Public upload is not implemented yet
<NcButton slot="action"
type="primary"
:aria-label="t('photos', 'Add photos to this album')"
@click="showAddPhotosModal = true">
<Plus slot="icon" />
{{ t('photos', "Add") }}
</NcButton>
-->
</NcEmptyContent>
</CollectionContent>
</div>
Expand All @@ -91,12 +94,13 @@ import { mapActions, mapGetters } from 'vuex'
import { createClient, getPatcher } from 'webdav'

import MapMarker from 'vue-material-design-icons/MapMarker'
import Plus from 'vue-material-design-icons/Plus'
import ImagePlus from 'vue-material-design-icons/ImagePlus'
// import Plus from 'vue-material-design-icons/Plus'
// import ImagePlus from 'vue-material-design-icons/ImagePlus'
import ImageOff from 'vue-material-design-icons/ImageOff'
// import Download from 'vue-material-design-icons/Download'
// import DownloadMultiple from 'vue-material-design-icons/DownloadMultiple'

import { NcActions, NcButton, NcEmptyContent, /** NcActionSeparator, */ isMobile } from '@nextcloud/vue'
import { NcActions, /** NcButton, */ NcEmptyContent, /** NcActionSeparator, */ isMobile } from '@nextcloud/vue'
import { showError } from '@nextcloud/dialogs'
import axios from '@nextcloud/axios'
import { generateUrl, generateRemoteUrl } from '@nextcloud/router'
Expand All @@ -123,14 +127,15 @@ export default {
name: 'PublicAlbumContent',
components: {
MapMarker,
Plus,
// Plus,
// Download,
// DownloadMultiple,
ImagePlus,
// ImagePlus,
ImageOff,
NcEmptyContent,
NcActions,
// NcActionSeparator,
NcButton,
// NcButton,
CollectionContent,
// ActionDownload,
HeaderNavigation,
Expand Down

0 comments on commit e8f8cd6

Please sign in to comment.