File tree Expand file tree Collapse file tree 1 file changed +27
-6
lines changed
frontend/src/app/layouts/Main Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change 3636 <q-card-section class =" q-pa-none q-ma-md" align =" center" >
3737 <template
3838 v-if ="
39- flipperStore .flags .isBridgeReady &&
40- ! flipperStore .flags .flipperIsInitialized
39+ ! flipperStore .flags .isBridgeReady ||
40+ flipperStore .flags .flipperIsInitialized
4141 "
4242 >
43+ <Loading label =" Flipper is initialized..." />
44+ </template >
45+ <template v-else-if =" flipperStore .availableDfuFlippers .length " >
46+ <q-list class =" q-gutter-y-md full-width" >
47+ <template
48+ v-for =" flipper in flipperStore .availableDfuFlippers "
49+ :key =" flipper .name "
50+ >
51+ <FlipperDfuItem :flipper >
52+ <template #default =" { flipper } " >
53+ <q-btn
54+ unelevated
55+ dense
56+ color =" primary"
57+ label =" Repair"
58+ @click =" flipperStore.recovery(flipper.info)"
59+ />
60+ </template >
61+ </FlipperDfuItem >
62+ </template >
63+ </q-list >
64+ </template >
65+ <template v-else >
4366 <q-img
4467 src =" ~assets/flipper_alert.svg"
4568 width =" 70px"
4669 no-spinner
4770 />
4871 <div class =" text-h6 q-my-sm" >Flipper not connected</div >
4972 </template >
50- <template v-else >
51- <Loading label =" Flipper is initialized..." />
52- </template >
5373 </q-card-section >
5474 </q-card >
5575 </q-page >
@@ -123,7 +143,8 @@ import {
123143 FlipperMobileDetectedDialog ,
124144 FlipperUnsupportedBrowserDialog ,
125145 FlipperDownloadPathDialog ,
126- FlipperRecoveryDialog
146+ FlipperRecoveryDialog ,
147+ FlipperDfuItem
127148} from ' entity/Flipper'
128149import { AppsModel , AppOutdatedFirmwareDialog } from ' entity/Apps'
129150const appsStore = AppsModel .useAppsStore ()
You can’t perform that action at this time.
0 commit comments