mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-25 22:55:32 +02:00
🚚 Rename ItemGroup → Section
This commit is contained in:
parent
fa5644673f
commit
c83041882a
@ -55,7 +55,7 @@ import IframeModal from '@/components/LinkItems/IframeModal.vue';
|
|||||||
import { getCurrentUser, isLoggedInAsGuest } from '@/utils/Auth';
|
import { getCurrentUser, isLoggedInAsGuest } from '@/utils/Auth';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ItemGroup',
|
name: 'Section',
|
||||||
inject: ['config'],
|
inject: ['config'],
|
||||||
props: {
|
props: {
|
||||||
groupId: String,
|
groupId: String,
|
@ -18,7 +18,7 @@
|
|||||||
<!-- Main content, section for each group of items -->
|
<!-- Main content, section for each group of items -->
|
||||||
<div v-if="checkTheresData(sections)"
|
<div v-if="checkTheresData(sections)"
|
||||||
:class="`item-group-container orientation-${layout} item-size-${itemSizeBound}`">
|
:class="`item-group-container orientation-${layout} item-size-${itemSizeBound}`">
|
||||||
<ItemGroup
|
<Section
|
||||||
v-for="(section, index) in getSections(sections)"
|
v-for="(section, index) in getSections(sections)"
|
||||||
:key="index"
|
:key="index"
|
||||||
:title="section.name"
|
:title="section.name"
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
import SettingsContainer from '@/components/Settings/SettingsContainer.vue';
|
import SettingsContainer from '@/components/Settings/SettingsContainer.vue';
|
||||||
import ItemGroup from '@/components/LinkItems/ItemGroup.vue';
|
import Section from '@/components/LinkItems/Section.vue';
|
||||||
import Defaults, { localStorageKeys, iconCdns } from '@/utils/defaults';
|
import Defaults, { localStorageKeys, iconCdns } from '@/utils/defaults';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -54,7 +54,7 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
SettingsContainer,
|
SettingsContainer,
|
||||||
ItemGroup,
|
Section,
|
||||||
},
|
},
|
||||||
data: () => ({
|
data: () => ({
|
||||||
searchValue: '',
|
searchValue: '',
|
||||||
@ -130,11 +130,11 @@ export default {
|
|||||||
getDisplayData(section) {
|
getDisplayData(section) {
|
||||||
return !section.displayData ? {} : section.displayData;
|
return !section.displayData ? {} : section.displayData;
|
||||||
},
|
},
|
||||||
/* Sets layout attribute, which is used by ItemGroup */
|
/* Sets layout attribute, which is used by Section */
|
||||||
setLayoutOrientation(layout) {
|
setLayoutOrientation(layout) {
|
||||||
this.layoutOrientation = layout;
|
this.layoutOrientation = layout;
|
||||||
},
|
},
|
||||||
/* Sets item size attribute, which is used by ItemGroup */
|
/* Sets item size attribute, which is used by Section */
|
||||||
setItemSize(itemSize) {
|
setItemSize(itemSize) {
|
||||||
this.iconSize = itemSize;
|
this.iconSize = itemSize;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user