Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

widgets: Warn user when they have no widgets in the view #1214

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/views/WidgetsView.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<template>
<div class="widgets-view">
<div v-for="view in store.viewsToShow" :key="view.hash" class="widget-view">
<div class="w-full h-full bg-slate-500" />
<div class="w-full h-full bg-slate-500 flex justify-center align-center">
<div
v-if="view.widgets.isEmpty()"
class="px-10 py-16 rounded-md flex flex-col justify-center align-center bg-slate-400 font-extrabold text-slate-600 w-[480px] text-center text-3xl"
>
<p>You currently have no widgets!</p>
<br />
<p>Open edit mode to start tweaking this view.</p>
</div>
</div>
<SnappingGrid v-if="store.snapToGrid && store.editingMode" :grid-interval="store.gridInterval" />
<template v-for="widget in view.widgets.slice().reverse()" :key="widget.hash">
<WidgetHugger
Expand Down
Loading