Skip to content

Commit

Permalink
fix: remove latest info widget (#353)
Browse files Browse the repository at this point in the history
* fix: 🐝 remove latest info widget

temporarily hides the latest info widget until we regain access to firebase for updated messaging

* fix: 🩹 add missing return statement

* fix(frontend): 🚑 remove latest info with filters on map and draw widget

* Revert "fix: 🐝 remove latest info widget"

This reverts commit bd3dc64.

* refactor: 🔧 add comment to remove filter method later

---------

Co-authored-by: PhantomMantis <phantommedia01@gmail.com>
  • Loading branch information
MrDynamo and PhantomMantis authored Apr 10, 2024
1 parent 5a0a1fb commit 37e21fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/wizarr-frontend/src/components/Dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<div>
<div class="grid-stack mx-[-10px]">
<Widget v-for="widget in dashboard" :key="widget.id" :data="widget" :isEditing="isEditing" @delete="deleteLocalWidget" />
<!-- Revert .filter() once we have working firebase access to re-enable LatestInfo widget -->
<Widget v-for="widget in dashboard.filter((widget) => widget.type !== 'LatestInfo')" :key="widget.id" :data="widget" :isEditing="isEditing" @delete="deleteLocalWidget" />
</div>
<Transition name="fade" mode="out-in" :duration="{ enter: 100, leave: 100 }">
<div v-if="isEditing" class="fixed right-6 bottom-6 group" @mouseover="isShowing = true" @mouseleave="isShowing = false">
Expand Down Expand Up @@ -66,6 +67,7 @@ export default defineComponent({
methods: {
makeWidgets(widgets: WidgetOptions[]) {
widgets.forEach((widget) => {
if (widget.type === "LatestInfo") return;
this.makeWidget(widget);
});
},
Expand Down

0 comments on commit 37e21fe

Please sign in to comment.