diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt index 885287c8e4..d49114326a 100644 --- a/backend/ee-repo-ref.txt +++ b/backend/ee-repo-ref.txt @@ -1 +1 @@ -287f4136a1573eb33ae4b1aae257416aee4ed767 \ No newline at end of file +3c4027125e0b512b7d322374e83594cd776a9086 \ No newline at end of file diff --git a/frontend/src/lib/components/InstanceSetting.svelte b/frontend/src/lib/components/InstanceSetting.svelte index f724e97a1a..3560a6119a 100644 --- a/frontend/src/lib/components/InstanceSetting.svelte +++ b/frontend/src/lib/components/InstanceSetting.svelte @@ -84,6 +84,12 @@ latestKeyRenewalAttempt = await SettingService.getLatestKeyRenewalAttempt() } + async function reloadLicenseKey() { + $values['license_key'] = await SettingService.getGlobal({ + key: 'license_key' + }) + } + if (setting.key == 'license_key') { reloadKeyrenewalAttemptInfo() } @@ -95,11 +101,11 @@ licenseKey: $values['license_key'] || undefined }) sendUserToast('Key renewal successful') - reloadKeyrenewalAttemptInfo() + reloadLicenseKey() } catch (err) { - latestKeyRenewalAttempt = await SettingService.getLatestKeyRenewalAttempt() throw err } finally { + reloadKeyrenewalAttemptInfo() renewing = false } }