Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/activity-sidebar.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { translate as t, translatePlural as n } from '@nextcloud/l10n'

import ActivityTab from './views/ActivityTab.vue'

import LightningBolt from 'vue-material-design-icons/LightningBolt.vue'

Vue.prototype.t = t
Vue.prototype.n = n

Expand All @@ -35,7 +37,7 @@ let ActivityTabInstance = null
const activityTab = new OCA.Files.Sidebar.Tab({
id: 'activity',
name: t('activity', 'Activity'),
icon: 'icon-activity',
icon: LightningBolt,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sexy, didn't we could do that :)

Copy link
Member

@skjnldsv skjnldsv Oct 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't get too excited, this is a bad approach I regret implementing 🙈
We can have conflicts in vue template compilation versions between those renders methods

Copy link
Member

@skjnldsv skjnldsv Oct 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skjnldsv is there a good way to import material icons as svg? or do we end up copying the svg in a bunch of places?

Copy link
Member

@skjnldsv skjnldsv Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it's as easy as what you're doing here :)
Just use the official material design icon
nextcloud-libraries/nextcloud-upload#444 (comment)

import FolderPlus from '@mdi/svg/svg/folder-plus.svg'


async mount(el, fileInfo, context) {
if (ActivityTabInstance) {
Expand Down