Skip to content

Commit

Permalink
Re-add actions.xml file to have a user-action needed on Volto
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Mar 13, 2024
1 parent dda7208 commit bd513ff
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
1.1.1 (unreleased)
------------------

- Nothing changed yet.
- re-add actions.xml file to have a user-action needed on Volto.
[cekk]


1.1.0 (2024-03-12)
Expand Down
17 changes: 17 additions & 0 deletions src/collective/feedback/profiles/default/actions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n" meta_type="Plone Actions Tool" name="portal_actions">

<object meta_type="CMF Action Category" name="user">
<object meta_type="CMF Action" name="feedback-dashboard" i18n:domain="plone">
<property name="title" i18n:translate="">Feedback dashboard</property>
<property name="url_expr">string:${globals_view/navigationRootUrl}/feedback-dashboard</property>
<property name="link_target" />
<property name="icon_expr" />
<property name="permissions">
<element value="collective.feedback: Manage Feedbacks" />
</property>
<property name="visible">True</property>
</object>
</object>

</object>
2 changes: 1 addition & 1 deletion src/collective/feedback/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<version>1100</version>
<version>1200</version>
<dependencies>
<dependency>profile-plone.restapi:default</dependency>
<dependency>profile-souper.plone:default</dependency>
Expand Down
4 changes: 4 additions & 0 deletions src/collective/feedback/upgrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def update_controlpanel(context):
update_profile(context, "controlpanel")


def update_actions(context):
update_profile(context, "actions")


def to_1100(context):
installOrReinstallProduct(api.portal.get(), "souper.plone")
context.runAllImportStepsFromProfile("profile-collective.feedback:to_1100")
Expand Down
10 changes: 10 additions & 0 deletions src/collective/feedback/upgrades.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,14 @@
handler=".upgrades.to_1100"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
profile="collective.feedback:default"
source="1100"
destination="1200"
>
<genericsetup:upgradeStep
title="Add user action"
handler=".upgrades.update_actions"
/>
</genericsetup:upgradeSteps>
</configure>

0 comments on commit bd513ff

Please sign in to comment.