Skip to content

Commit

Permalink
Add icon to notifications menu
Browse files Browse the repository at this point in the history
TODO:
- [ ] The icon didn't appear, necessary to fix this

Task suspended to be possible work at most important features

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Jul 17, 2023
1 parent f4465a9 commit ff79464
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/components/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,33 @@
:title="t('my_company', 'Home')"
icon="icon-home"
:exact="true" />
<NcAppNavigationItem :to="{name: 'notifications'}"
:title="t('my_company', 'Notifications')"
:exact="true">
<NcIconSvgWrapper slot="icon" :svg="iconNotifications" />
</NcAppNavigationItem>
</template>
</NcAppNavigation>
</template>

<script>
import NcAppNavigation from '@nextcloud/vue/dist/Components/NcAppNavigation.js'
import NcAppNavigationItem from '@nextcloud/vue/dist/Components/NcAppNavigationItem.js'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
import iconNotifications from 'apps/announcementcenter/img/announcementcenter.svg?raw'
export default {
name: 'LeftSidebar',
components: {
NcAppNavigation,
NcAppNavigationItem,
NcIconSvgWrapper,
},
data() {
return {
iconNotifications,
}
}
}
</script>

<style lang="scss" scoped>
.icon-notifications {
background-image: inline-image('apps/announcementcenter/img/announcementcenter.svg');
filter: var(--background-invert-if-dark);
}
</style>

0 comments on commit ff79464

Please sign in to comment.