@isoftdata/svelte-user-configuration 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -163,10 +163,9 @@ $: isCreatingNewUser = userAccount.id === null;
163
163
  size="sm"
164
164
  outline
165
165
  iconClass="paper-plane"
166
+ disabled={!canEditAccountInfo}
166
167
  on:click={() => {
167
- if (userAccount.recoveryEmail) {
168
- passwordRecoveryModal.open(userAccount.workEmail, userAccount.lastPasswordResetDate)
169
- }
168
+ passwordRecoveryModal.open(userAccount.workEmail, userAccount.lastPasswordResetDate)
170
169
  }}
171
170
  >
172
171
  {translate('configuration.user.sendResetToken', 'Send Reset Token')}...
@@ -176,6 +175,7 @@ $: isCreatingNewUser = userAccount.id === null;
176
175
  size="sm"
177
176
  outline
178
177
  iconClass="key"
178
+ disabled={!canEditAccountInfo}
179
179
  on:click={() => passwordSetModal.open(userAccount)}
180
180
  >
181
181
  {translate('configuration.user.setPassword', 'Set Password')}...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/svelte-user-configuration",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",