Skip to content

Commit f646ce5

Browse files
committed
Review
1 parent 42bb9d9 commit f646ce5

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/permissions.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ When a user installs an extension that requests permissions, they can manage tho
5454

5555
## Reacting to Permission Changes
5656

57-
Extensions can subscribe to the `permissionsChanged` event on `IExtensionPermissionsApi` to be notified whenever the user grants or revokes permissions for any of the extensions. This allows you to reactively update your extension's behaviour without requiring a restart.
57+
Extensions can subscribe to the `permissionsChanged` event on `IExtensionPermissionsApi` to be notified whenever the user grants or revokes permissions for any extension. This allows you to reactively update your extension's behavior without requiring a restart.
5858

5959
The event carries no arguments. When it fires, call `getPermissions()` to retrieve the current state.
60-
Update you main/index.ts to the following to check when someone unchecked the permissions.
60+
Update your `main/index.ts` to the following to detect when a permission changes.
6161

6262
```typescript
6363
import { IComponent, getStudioProApi } from "@mendix/extensions-api";
@@ -90,10 +90,9 @@ export const component: IComponent = {
9090
}
9191
};
9292
```
93-
The `permissionsChanged` event fires for all extensions whenever any permission is granted or revoked anywhere in the system, not just for your extension. This means multiple extensions may be responding to the same event simultaneously.
93+
The `permissionsChanged` event fires for all extensions whenever any permission is granted or revoked anywhere in the system, not just for your extension. This means multiple extensions may respond to the same event simultaneously.
9494

95-
To check if the change happened for your extension you must compare the old granted state against the new one for the permission name you want to be granted.
96-
Without this check, your extension would fire a notification every time any extension's permission changes, even ones completely unrelated to you.
95+
To check if a change affects your extension, compare the old granted state against the new one for each permission name your extension declared. Without this check, your extension fires a notification every time any permission changes, including changes unrelated to your extension.
9796

9897
## Available Permissions
9998

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/preference-api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Create a menu that displays a dialog with text in the `loaded` method in the mai
2525

2626
In the example below, you create one menu item that shows a message box with the user's preferences, such as `Light` or `Dark` mode, current language and the version of Studio Pro the user is using.
2727

28+
{{% alert type="info" %}}
29+
Seeing the current Studio Pro version is available for Studio Pro 11.12 and above.
30+
{{% /alert %}}
31+
2832
Replace your `src/main/index.ts` file with the following:
2933

3034
```typescript

content/en/docs/releasenotes/studio-pro/web-extensibility-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ These release notes cover changes to the [Extensibility API for Web Developers](
1010

1111
## Version 11.12.0
1212

13-
* We added a `permissionsChanged` event that can help you know if the user changed the permissions of your extensions in the [Permissions API] (/apidocs-mxsdk/apidocs/web-extensibility-api-11/extension-permissions/)
14-
* We added the `documentsChanged` event for when one of your dependencies gets modified in Studio Pro and is a dependency you can get notified.
15-
* The version of the studio pro is available though the [Preferences API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/preference-api/).
13+
* We added a `permissionsChanged` event to the [Permissions API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/extension-permissions/) that notifies you when the user changes the permissions of your extension.
14+
* We added the `documentsChanged` event, which notifies you when a document that your extension depends on is modified in Studio Pro.
15+
* The Studio Pro version is now available through the [Preferences API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/preference-api/).
1616

1717
## Version 11.11.0
1818

0 commit comments

Comments
 (0)