diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-24 13:19:21 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-24 13:19:21 +0900 |
| commit | d64e25e4490da7fc508230d92d277b1c5284b381 (patch) | |
| tree | 5eb4f52484b100f59ee091664f5de9bb94c04ca5 /src/client | |
| parent | fix(server): use csp to imporve security (diff) | |
| download | sharkey-d64e25e4490da7fc508230d92d277b1c5284b381.tar.gz sharkey-d64e25e4490da7fc508230d92d277b1c5284b381.tar.bz2 sharkey-d64e25e4490da7fc508230d92d277b1c5284b381.zip | |
fix: support DeepL pro account
Fix #7648
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/pages/instance/other-settings.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/pages/instance/other-settings.vue b/src/client/pages/instance/other-settings.vue index 8002528931..4fa80b2b2c 100644 --- a/src/client/pages/instance/other-settings.vue +++ b/src/client/pages/instance/other-settings.vue @@ -12,6 +12,9 @@ <template #prefix><i class="fas fa-key"></i></template> DeepL Auth Key </FormInput> + <FormSwitch v-model:value="deeplIsPro"> + Pro account + </FormSwitch> </FormGroup> <FormButton @click="save" primary><i class="fas fa-save"></i> {{ $ts.save }}</FormButton> </FormSuspense> @@ -50,6 +53,7 @@ export default defineComponent({ }, summalyProxy: '', deeplAuthKey: '', + deeplIsPro: false, } }, @@ -62,11 +66,13 @@ export default defineComponent({ const meta = await os.api('meta', { detail: true }); this.summalyProxy = meta.summalyProxy; this.deeplAuthKey = meta.deeplAuthKey; + this.deeplIsPro = meta.deeplIsPro; }, save() { os.apiWithDialog('admin/update-meta', { summalyProxy: this.summalyProxy, deeplAuthKey: this.deeplAuthKey, + deeplIsPro: this.deeplIsPro, }).then(() => { fetchInstance(); }); |