Skip to content

Commit

Permalink
Use information outline as sidebar icon
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Nov 21, 2023
1 parent a6288c1 commit e925f75
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/photos-sidebar.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
import Vue from 'vue'
// eslint-disable-next-line n/no-missing-import, import/no-unresolved
import InformationSlabSymbol from '@mdi/svg/svg/information-slab-symbol.svg?raw'
import InformationOutline from '@mdi/svg/svg/information-outline.svg?raw'
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
import { getRequestToken } from '@nextcloud/auth'
import { generateFilePath } from '@nextcloud/router'
Expand All @@ -47,7 +47,7 @@ let PhotosTabInstance = null
const photosTab = new OCA.Files.Sidebar.Tab({
id: 'photos',
name: t('photos', 'Details'),
iconSvg: InformationSlabSymbol,
iconSvg: InformationOutline,

async mount(el, fileInfo, context) {
// only load if needed
Expand Down Expand Up @@ -76,7 +76,7 @@ const photosTab = new OCA.Files.Sidebar.Tab({
},
})

window.addEventListener('DOMContentLoaded', async function() {
window.addEventListener('DOMContentLoaded', async function () {

Check failure on line 79 in src/sidebar.js

View workflow job for this annotation

GitHub Actions / eslint

Unexpected space before function parentheses
if (OCA.Files && OCA.Files.Sidebar) {
OCA.Files.Sidebar.registerTab(photosTab)
const { default: PhotosTab } = await import(/* webpackPreload: true */ './views/PhotosTab.vue')
Expand All @@ -91,7 +91,7 @@ window.addEventListener('DOMContentLoaded', async function() {
return metadataArray?.reduce((parsedArray, metadata) => ({ ...parsedArray, [metadata.nodeName]: metadata.textContent }), {})
}

OC.Files.getClient().addFileInfoParser(function(response) {
OC.Files.getClient().addFileInfoParser(function (response) {

Check failure on line 94 in src/sidebar.js

View workflow job for this annotation

GitHub Actions / eslint

Unexpected space before function parentheses
return {
'metadata-photos-original_date_time': response.propStat[0].properties[`{${OC.Files.Client.NS_NEXTCLOUD}}metadata-photos-original_date_time`],
'metadata-photos-exif': parseMetadataArray(response.propStat[0].properties[`{${OC.Files.Client.NS_NEXTCLOUD}}metadata-photos-exif`]),
Expand Down

0 comments on commit e925f75

Please sign in to comment.