Skip to content

Commit

Permalink
Use human-readable name on MiniWidgetBar containers
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Oct 26, 2023
1 parent 7d3c459 commit f2219c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/widgets/MiniWidgetsBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</template>

<script setup lang="ts">
import { v4 as uuid } from 'uuid'
import { onBeforeMount, toRefs } from 'vue'
import { capitalize, onBeforeMount, toRefs } from 'vue'
import * as Words from '@/libs/funny-name/words'
import { useWidgetManagerStore } from '@/stores/widgetManager'
import type { Widget } from '@/types/widgets'
Expand All @@ -34,7 +34,7 @@ onBeforeMount(() => {
if (Object.keys(widget.value.options).length === 0) {
widget.value.options = {
miniWidgetsContainer: {
name: uuid(),
name: `${capitalize(Words.animalsOcean.random() || 'Plankton')} floating container`,
widgets: [],
},
}
Expand Down

0 comments on commit f2219c4

Please sign in to comment.