summaryrefslogtreecommitdiff
path: root/src/client/pages/instance
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-08-17 22:01:46 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-08-17 22:01:46 +0900
commitdf67836c1ad281d2622b52bdf7c767b2dfc0e6a5 (patch)
tree5a2c4e5b681857d846d5fea1f4058b72e80651da /src/client/pages/instance
parentMerge branch 'develop' (diff)
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadmisskey-df67836c1ad281d2622b52bdf7c767b2dfc0e6a5.tar.gz
misskey-df67836c1ad281d2622b52bdf7c767b2dfc0e6a5.tar.bz2
misskey-df67836c1ad281d2622b52bdf7c767b2dfc0e6a5.zip
Merge branch 'develop'
Diffstat (limited to 'src/client/pages/instance')
-rw-r--r--src/client/pages/instance/file-dialog.vue4
-rw-r--r--src/client/pages/instance/other-settings.vue10
2 files changed, 10 insertions, 4 deletions
diff --git a/src/client/pages/instance/file-dialog.vue b/src/client/pages/instance/file-dialog.vue
index be6bf6cbf2..8a03a11de7 100644
--- a/src/client/pages/instance/file-dialog.vue
+++ b/src/client/pages/instance/file-dialog.vue
@@ -93,10 +93,8 @@ export default defineComponent({
});
if (canceled) return;
- os.api('drive/files/delete', {
+ os.apiWithDialog('drive/files/delete', {
fileId: this.file.id
- }).then(() => {
- this.$refs.files.removeItem(x => x.id === this.file.id);
});
},
diff --git a/src/client/pages/instance/other-settings.vue b/src/client/pages/instance/other-settings.vue
index b3954149a8..8002528931 100644
--- a/src/client/pages/instance/other-settings.vue
+++ b/src/client/pages/instance/other-settings.vue
@@ -7,7 +7,12 @@
Summaly Proxy URL
</FormInput>
</FormGroup>
-
+ <FormGroup>
+ <FormInput v-model:value="deeplAuthKey">
+ <template #prefix><i class="fas fa-key"></i></template>
+ DeepL Auth Key
+ </FormInput>
+ </FormGroup>
<FormButton @click="save" primary><i class="fas fa-save"></i> {{ $ts.save }}</FormButton>
</FormSuspense>
</FormBase>
@@ -44,6 +49,7 @@ export default defineComponent({
icon: 'fas fa-cogs'
},
summalyProxy: '',
+ deeplAuthKey: '',
}
},
@@ -55,10 +61,12 @@ export default defineComponent({
async init() {
const meta = await os.api('meta', { detail: true });
this.summalyProxy = meta.summalyProxy;
+ this.deeplAuthKey = meta.deeplAuthKey;
},
save() {
os.apiWithDialog('admin/update-meta', {
summalyProxy: this.summalyProxy,
+ deeplAuthKey: this.deeplAuthKey,
}).then(() => {
fetchInstance();
});