Commit 5dedf0a
Show empty Pinned section with hint; fix stale Recent card on launch (#70)
* show pinned section with empty hint when no pins exist
Display the Pinned section on the dashboard even when no installations
are pinned, with a hint message guiding users to right-click an install
to pin it. Uses a computed to avoid ref unwrapping issues in templates.
Amp-Thread-ID: https://ampcode.com/threads/T-019ca6df-24c7-750c-bbc0-fdefff59f674
Co-authored-by: Amp <amp@ampcode.com>
* fix: pinned section hint and stale Recent card after launch
- Replace v-else-if='!hasAnyPins' with v-else so the hint always
renders when no pinned cards are visible
- Add allPinsInQuickLaunch computed to show a distinct message when
all pins are already displayed in Quick Launch
- Broadcast installations-changed after lastLaunchedAt update so the
dashboard Recent card refreshes immediately on launch
Amp-Thread-ID: https://ampcode.com/threads/T-019ca83b-24f9-746a-a55b-d5392c404bc9
Co-authored-by: Amp <amp@ampcode.com>
---------
Co-authored-by: Amp <amp@ampcode.com>1 parent f98d649 commit 5dedf0a
File tree
5 files changed
+23
-5
lines changed- locales
- src
- main/lib
- renderer/src
- assets
- views
5 files changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
335 | 343 | | |
336 | 344 | | |
337 | 345 | | |
338 | | - | |
| 346 | + | |
339 | 347 | | |
340 | 348 | | |
341 | 349 | | |
342 | 350 | | |
343 | | - | |
| 351 | + | |
344 | 352 | | |
345 | 353 | | |
346 | 354 | | |
| |||
363 | 371 | | |
364 | 372 | | |
365 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
366 | 377 | | |
367 | 378 | | |
368 | 379 | | |
| |||
0 commit comments