Skip to content

Conversation

@LaurenceJJones
Copy link
Contributor

@LaurenceJJones LaurenceJJones commented Nov 6, 2025

Whilst looking at #872 I found the ability to delete default app images to be confusing.

This PR simply adds a check if the image starts with image/ which is different from the default which is static/. if false do not render the tooltip and the button which ultimately if rendered / used results in an error if clicked / go through the 2 step process.

before:
Screencast_20251106_091748.webm

after:
Screencast_20251106_091930.webm

@LaurenceJJones LaurenceJJones requested a review from a team as a code owner November 6, 2025 09:09
@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.14%. Comparing base (2b67bc3) to head (883cc15).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #873   +/-   ##
=======================================
  Coverage   79.14%   79.14%           
=======================================
  Files          56       56           
  Lines        2225     2225           
=======================================
  Hits         1761     1761           
  Misses        360      360           
  Partials      104      104           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

<TableCell padding="normal">
<div style={{display: 'flex'}}>
<Tooltip title="Delete image" placement="top" arrow>
<ButtonBase className={classes.imageContainer} onClick={fDeleteImage}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Button can be disabled instead of removing the ToolTip/ButtonBase when the image doesn't exists.

@jmattheis jmattheis force-pushed the fix-default-image-delete branch from 3c39d98 to 9019710 Compare November 16, 2025 10:26
Copy link
Member

@jmattheis jmattheis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jmattheis jmattheis force-pushed the fix-default-image-delete branch from 9019710 to 883cc15 Compare November 16, 2025 10:27
@jmattheis jmattheis merged commit 2a6f9fb into gotify:master Nov 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants