Skip to content

Disable appreciation mode button when there are no appreciation items#642

Merged
MakinoharaShoko merged 3 commits intodevfrom
MakinoharaShoko/disable-appreciation-mode-button
Feb 27, 2025
Merged

Disable appreciation mode button when there are no appreciation items#642
MakinoharaShoko merged 3 commits intodevfrom
MakinoharaShoko/disable-appreciation-mode-button

Conversation

@MakinoharaShoko
Copy link
Copy Markdown
Member

Fixes #641

Disable the appreciation mode button when there are no appreciation items.

  • Add a check for appreciation items in packages/webgal/src/UI/Title/Title.tsx using useSelector to determine if there are any appreciation items.
  • Modify the appreciation mode button to include a disabled attribute and a conditional class for when there are no appreciation items.
  • Update the styles in packages/webgal/src/UI/Title/title.module.scss to include a new class for the disabled state of the appreciation mode button.

Fixes #641

Disable the appreciation mode button when there are no appreciation items.

* Add a check for appreciation items in `packages/webgal/src/UI/Title/Title.tsx` using `useSelector` to determine if there are any appreciation items.
* Modify the appreciation mode button to include a `disabled` attribute and a conditional class for when there are no appreciation items.
* Update the styles in `packages/webgal/src/UI/Title/title.module.scss` to include a new class for the disabled state of the appreciation mode button.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Feb 15, 2025

Deploying webgal-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 24d731b
Status: ✅  Deploy successful!
Preview URL: https://f8ed6be2.webgal-dev.pages.dev
Branch Preview URL: https://makinoharashoko-disable-appr.webgal-dev.pages.dev

View logs

@MakinoharaShoko MakinoharaShoko changed the base branch from main to dev February 27, 2025 13:43
@MakinoharaShoko MakinoharaShoko merged commit fcfe77b into dev Feb 27, 2025
KonshinHaoshin pushed a commit to KonshinHaoshin/WebGAL_Eastmount that referenced this pull request Nov 7, 2025
…able-appreciation-mode-button

Disable appreciation mode button when there are no appreciation items
@MakinoharaShoko MakinoharaShoko deleted the MakinoharaShoko/disable-appreciation-mode-button branch February 22, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

在没有鉴赏项目时将鉴赏模式的按钮设为不可点击(disabled)

1 participant