Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add actions slot to dashboard widget item #2718

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Jun 1, 2022

This PR adds an action slot to the DashboardWidgetItem so that it's possible to provide different actions for each dashboard widget item. This also allows to provide material design icons for each action, which was not possible before. Closes #2685.

See nextcloud/tasks#2017 for an example how this works.

In Tasks, we can now prevent showing actions for read-only tasks:

Before:
Screenshot 2022-06-01 at 22-46-13 Dashboard - Nextcloud

After:
Screenshot 2022-06-01 at 22-54-37 Dashboard - Nextcloud

Copy link

@jakobroehrl jakobroehrl left a comment

Choose a reason for hiding this comment

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

looks good

Copy link
Contributor

@GretaD GretaD left a comment

Choose a reason for hiding this comment

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

👍

@raimund-schluessler raimund-schluessler merged commit 46456eb into master Jun 2, 2022
@raimund-schluessler raimund-schluessler deleted the feature/2685/dashboard-actions branch June 2, 2022 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request feature: dashboard Related to the dashboard widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to have different actions for dashboard items
3 participants