fix: move sidebar tab icons to material design
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -27,31 +27,39 @@
|
|||||||
@close="closeSidebar">
|
@close="closeSidebar">
|
||||||
<NcAppSidebarTab id="sharing"
|
<NcAppSidebarTab id="sharing"
|
||||||
:order="0"
|
:order="0"
|
||||||
:name="t('deck', 'Sharing')"
|
:name="t('deck', 'Sharing')">
|
||||||
icon="icon-shared">
|
<template #icon>
|
||||||
|
<SharingIcon :size="20" />
|
||||||
|
</template>
|
||||||
<SharingTabSidebar :board="board" />
|
<SharingTabSidebar :board="board" />
|
||||||
</NcAppSidebarTab>
|
</NcAppSidebarTab>
|
||||||
|
|
||||||
<NcAppSidebarTab id="tags"
|
<NcAppSidebarTab id="tags"
|
||||||
:order="1"
|
:order="1"
|
||||||
:name="t('deck', 'Tags')"
|
:name="t('deck', 'Tags')">
|
||||||
icon="icon-tag">
|
<template #icon>
|
||||||
|
<TagsIcon :size="20" />
|
||||||
|
</template>
|
||||||
<TagsTabSidebar :board="board" />
|
<TagsTabSidebar :board="board" />
|
||||||
</NcAppSidebarTab>
|
</NcAppSidebarTab>
|
||||||
|
|
||||||
<NcAppSidebarTab v-if="canEdit"
|
<NcAppSidebarTab v-if="canEdit"
|
||||||
id="deleted"
|
id="deleted"
|
||||||
:order="2"
|
:order="2"
|
||||||
:name="t('deck', 'Deleted items')"
|
:name="t('deck', 'Deleted items')">
|
||||||
icon="icon-delete">
|
<template #icon>
|
||||||
|
<TrashIcon :size="20" />
|
||||||
|
</template>
|
||||||
<DeletedTabSidebar :board="board" />
|
<DeletedTabSidebar :board="board" />
|
||||||
</NcAppSidebarTab>
|
</NcAppSidebarTab>
|
||||||
|
|
||||||
<NcAppSidebarTab v-if="hasActivity"
|
<NcAppSidebarTab v-if="hasActivity"
|
||||||
id="activity"
|
id="activity"
|
||||||
:order="3"
|
:order="3"
|
||||||
:name="t('deck', 'Timeline')"
|
:name="t('deck', 'Timeline')">
|
||||||
icon="icon-activity">
|
<template #icon>
|
||||||
|
<ActivityIcon :size="20" />
|
||||||
|
</template>
|
||||||
<TimelineTabSidebar :board="board" />
|
<TimelineTabSidebar :board="board" />
|
||||||
</NcAppSidebarTab>
|
</NcAppSidebarTab>
|
||||||
</NcAppSidebar>
|
</NcAppSidebar>
|
||||||
@@ -64,7 +72,10 @@ import TagsTabSidebar from './TagsTabSidebar.vue'
|
|||||||
import DeletedTabSidebar from './DeletedTabSidebar.vue'
|
import DeletedTabSidebar from './DeletedTabSidebar.vue'
|
||||||
import TimelineTabSidebar from './TimelineTabSidebar.vue'
|
import TimelineTabSidebar from './TimelineTabSidebar.vue'
|
||||||
import { NcAppSidebar, NcAppSidebarTab } from '@nextcloud/vue'
|
import { NcAppSidebar, NcAppSidebarTab } from '@nextcloud/vue'
|
||||||
|
import ActivityIcon from 'vue-material-design-icons/LightningBolt.vue'
|
||||||
|
import SharingIcon from 'vue-material-design-icons/ShareVariant.vue'
|
||||||
|
import TagsIcon from 'vue-material-design-icons/TagMultiple.vue'
|
||||||
|
import TrashIcon from 'vue-material-design-icons/Delete.vue'
|
||||||
const capabilities = window.OC.getCapabilities()
|
const capabilities = window.OC.getCapabilities()
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -76,6 +87,10 @@ export default {
|
|||||||
TagsTabSidebar,
|
TagsTabSidebar,
|
||||||
DeletedTabSidebar,
|
DeletedTabSidebar,
|
||||||
TimelineTabSidebar,
|
TimelineTabSidebar,
|
||||||
|
ActivityIcon,
|
||||||
|
SharingIcon,
|
||||||
|
TagsIcon,
|
||||||
|
TrashIcon,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
id: {
|
id: {
|
||||||
|
|||||||
@@ -50,32 +50,38 @@
|
|||||||
|
|
||||||
<NcAppSidebarTab id="details"
|
<NcAppSidebarTab id="details"
|
||||||
:order="0"
|
:order="0"
|
||||||
:name="t('deck', 'Details')"
|
:name="t('deck', 'Details')">
|
||||||
icon="icon-home">
|
|
||||||
<CardSidebarTabDetails :card="currentCard" />
|
<CardSidebarTabDetails :card="currentCard" />
|
||||||
|
<template #icon>
|
||||||
|
<HomeIcon :size="20" />
|
||||||
|
</template>
|
||||||
</NcAppSidebarTab>
|
</NcAppSidebarTab>
|
||||||
|
|
||||||
<NcAppSidebarTab id="attachments"
|
<NcAppSidebarTab id="attachments"
|
||||||
:order="1"
|
:order="1"
|
||||||
:name="t('deck', 'Attachments')">
|
:name="t('deck', 'Attachments')">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<AttachmentIcon :size="20" decorative />
|
<AttachmentIcon :size="20" />
|
||||||
</template>
|
</template>
|
||||||
<CardSidebarTabAttachments :card="currentCard" />
|
<CardSidebarTabAttachments :card="currentCard" />
|
||||||
</NcAppSidebarTab>
|
</NcAppSidebarTab>
|
||||||
|
|
||||||
<NcAppSidebarTab id="comments"
|
<NcAppSidebarTab id="comments"
|
||||||
:order="2"
|
:order="2"
|
||||||
:name="t('deck', 'Comments')"
|
:name="t('deck', 'Comments')">
|
||||||
icon="icon-comment">
|
<template #icon>
|
||||||
|
<CommentIcon :size="20" />
|
||||||
|
</template>
|
||||||
<CardSidebarTabComments :card="currentCard" :tab-query="tabQuery" />
|
<CardSidebarTabComments :card="currentCard" :tab-query="tabQuery" />
|
||||||
</NcAppSidebarTab>
|
</NcAppSidebarTab>
|
||||||
|
|
||||||
<NcAppSidebarTab v-if="hasActivity"
|
<NcAppSidebarTab v-if="hasActivity"
|
||||||
id="timeline"
|
id="timeline"
|
||||||
:order="3"
|
:order="3"
|
||||||
:name="t('deck', 'Timeline')"
|
:name="t('deck', 'Timeline')">
|
||||||
icon="icon-activity">
|
<template #icon>
|
||||||
|
<ActivityIcon :size="20" />
|
||||||
|
</template>
|
||||||
<CardSidebarTabActivity :card="currentCard" />
|
<CardSidebarTabActivity :card="currentCard" />
|
||||||
</NcAppSidebarTab>
|
</NcAppSidebarTab>
|
||||||
</NcAppSidebar>
|
</NcAppSidebar>
|
||||||
@@ -92,6 +98,9 @@ import CardSidebarTabActivity from './CardSidebarTabActivity.vue'
|
|||||||
import relativeDate from '../../mixins/relativeDate.js'
|
import relativeDate from '../../mixins/relativeDate.js'
|
||||||
import moment from '@nextcloud/moment'
|
import moment from '@nextcloud/moment'
|
||||||
import AttachmentIcon from 'vue-material-design-icons/Paperclip.vue'
|
import AttachmentIcon from 'vue-material-design-icons/Paperclip.vue'
|
||||||
|
import HomeIcon from 'vue-material-design-icons/Home.vue'
|
||||||
|
import CommentIcon from 'vue-material-design-icons/Comment.vue'
|
||||||
|
import ActivityIcon from 'vue-material-design-icons/LightningBolt.vue'
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs'
|
import { showError } from '@nextcloud/dialogs'
|
||||||
import { getLocale } from '@nextcloud/l10n'
|
import { getLocale } from '@nextcloud/l10n'
|
||||||
@@ -108,7 +117,10 @@ export default {
|
|||||||
CardSidebarTabComments,
|
CardSidebarTabComments,
|
||||||
CardSidebarTabActivity,
|
CardSidebarTabActivity,
|
||||||
CardSidebarTabDetails,
|
CardSidebarTabDetails,
|
||||||
|
ActivityIcon,
|
||||||
AttachmentIcon,
|
AttachmentIcon,
|
||||||
|
CommentIcon,
|
||||||
|
HomeIcon,
|
||||||
},
|
},
|
||||||
mixins: [relativeDate],
|
mixins: [relativeDate],
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
Reference in New Issue
Block a user