diff --git a/public/css/components/dashboard.css b/public/css/components/dashboard.css index e31b74233..1a9808e0c 100644 --- a/public/css/components/dashboard.css +++ b/public/css/components/dashboard.css @@ -84,4 +84,5 @@ top: -999px; left: -999px; z-index: 3; -} \ No newline at end of file +} + diff --git a/public/js/components/Dashboard/Item.js b/public/js/components/Dashboard/Item.js index c52c7887e..b78659a96 100644 --- a/public/js/components/Dashboard/Item.js +++ b/public/js/components/Dashboard/Item.js @@ -100,7 +100,7 @@ export default { }, watch: { config() { - this.arguments = { ...this.widget.arguments, ...this.config }; + this.arguments = { ...this.widget?.arguments, ...this.config }; this.tmpConfig = { ...this.arguments }; this.$refs.config && this.$refs.config.hide(); this.isLoading = false; diff --git a/public/js/components/Dashboard/Section.js b/public/js/components/Dashboard/Section.js index 9a8a59a4f..0ff0f52e2 100644 --- a/public/js/components/Dashboard/Section.js +++ b/public/js/components/Dashboard/Section.js @@ -2,13 +2,20 @@ import BsConfirm from "../Bootstrap/Confirm.js"; import DropGrid from '../Drop/Grid.js' import DashboardItem from "./Item.js"; import CachedWidgetLoader from "../../composables/Dashboard/CachedWidgetLoader.js"; +import WidgetIcon from "./Widget/WidgetIcon.js" + export default { name: 'Section', components: { DropGrid, - DashboardItem + DashboardItem, + WidgetIcon, }, inject: { + widgetsSetup:{ + type: Object, + default: {}, + }, adminMode: { type: Boolean, default: false @@ -38,7 +45,8 @@ export default { return { editModeIsActive: Vue.computed(() => this.editModeIsActive - ), + ), + sectionName: Vue.computed(() => this.name), } }, computed: { @@ -205,7 +213,12 @@ export default { }); }, template: ` -