Changeset 41825d5 for components/BuildDetailsDialog.tsx
- Timestamp:
- 03/01/26 22:55:00 (4 months ago)
- Branches:
- main
- Children:
- ff3a614
- Parents:
- 1d7e8fe
- File:
-
- 1 edited
-
components/BuildDetailsDialog.tsx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
components/BuildDetailsDialog.tsx
r1d7e8fe r41825d5 244 244 </Box> 245 245 246 <Box sx={{display: 'flex', flexDirection: 'column', gap: 1}}> 247 {isDashboardView && isOwner ? ( 246 {currentUser && ( 247 <Box sx={{display: 'flex', flexDirection: 'column', gap: 1}}> 248 {isDashboardView && isOwner ? ( 249 <Button 250 variant="contained" 251 color="primary" 252 size="large" 253 startIcon={<AutoFixHighIcon/>} 254 onClick={() => { 255 window.location.href = `/forge?buildId=${details.id}`; 256 onClose(); 257 }} 258 > 259 Edit Build 260 </Button> 261 ) : ( 262 <Button 263 variant="contained" 264 color="primary" 265 size="large" 266 startIcon={<AutoFixHighIcon/>} 267 onClick={() => { 268 setCloningBuildId(details.id); 269 setCloneDialogOpen(true); 270 }} 271 > 272 Clone & Edit 273 </Button> 274 )} 248 275 <Button 249 variant="contained" 250 color="primary" 251 size="large" 252 startIcon={<AutoFixHighIcon/>} 253 onClick={() => { 254 window.location.href = `/forge?buildId=${details.id}`; 255 onClose(); 256 }} 276 variant={details.isFavorite ? "contained" : "outlined"} 277 color={details.isFavorite ? "error" : "primary"} 278 startIcon={details.isFavorite ? <FavoriteIcon/> : <FavoriteBorderIcon/>} 279 onClick={handleFavorite} 257 280 > 258 Edit Build281 {details.isFavorite ? "Favorited" : "Add to Favorites"} 259 282 </Button> 260 ) : ( 261 <Button 262 variant="contained" 263 color="primary" 264 size="large" 265 startIcon={<AutoFixHighIcon/>} 266 onClick={() => { 267 setCloningBuildId(details.id); 268 setCloneDialogOpen(true); 269 }} > 270 Clone & Edit 271 </Button> 272 )} 273 <Button 274 variant={details.isFavorite ? "contained" : "outlined"} 275 color={details.isFavorite ? "error" : "primary"} 276 startIcon={details.isFavorite ? <FavoriteIcon/> : 277 <FavoriteBorderIcon/>} 278 onClick={handleFavorite} 279 > 280 {details.isFavorite ? "Favorited" : "Add to Favorites"} 281 </Button> 282 </Box> 283 </Box> 284 )} 285 283 286 </Box> 284 287 </Box>
Note:
See TracChangeset
for help on using the changeset viewer.
