Skip to content

Commit

Permalink
add selectedAccount added in 88
Browse files Browse the repository at this point in the history
  • Loading branch information
jobisoft committed Mar 4, 2021
1 parent cba3382 commit bc328b2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions changes/beta88.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ menus
=====

* The :ref:`menus_api` API now supports the ``tools_menu`` :ref:`menus.ContextType`.
* The :ref:`menus.onShowData` and :ref:`menus.onClickData` now include a ``selectedAccount`` property, if the menu was opened on a root folder in the folder pane, representing an account.


3 changes: 3 additions & 0 deletions menus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ Information sent when a context menu item is clicked.
.. api-member::
:name: [``selectedAccount``]
:type: (:ref:`accounts.MailAccount`)
:annotation: -- [Added in TB 88]

The selected account, if the context menu was opened on an account entry in the folder pane. The :permission:`accountsRead` permission is required.

Expand Down Expand Up @@ -786,6 +787,7 @@ Some properties are only included if the extension has host permission for the g
.. api-member::
:name: [``attachments``]
:type: (array of :ref:`compose.ComposeAttachment`)
:annotation: -- [Added in TB 83]


.. api-member::
Expand Down Expand Up @@ -829,6 +831,7 @@ Some properties are only included if the extension has host permission for the g
.. api-member::
:name: [``selectedAccount``]
:type: (:ref:`accounts.MailAccount`)
:annotation: -- [Added in TB 88]


.. api-member::
Expand Down
25 changes: 12 additions & 13 deletions overlay/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,22 @@
"properties": {
"attachments": {
"added": "83"
},
"selectedAccount": {
"added": "88"
}
}
}
],
"events": [
},
{
"name": "onShown",
"parameters": [
{
"name": "info",
"properties": {
"attachments": {
"added": "83"
}
}
"id": "OnShowData",
"properties": {
"attachments": {
"added": "83"
},
"selectedAccount": {
"added": "88"
}
]
}
}
]
}
Expand Down

0 comments on commit bc328b2

Please sign in to comment.