summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/drive.file.info.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-08-26 09:08:00 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-08-26 09:08:00 +0900
commit9e5c8d94bff0352bca3b15fd75a7c6ccaa1df2ff (patch)
treee6e86b8b5297d615890ce2f35692d95c78e3fd9e /packages/frontend/src/pages/drive.file.info.vue
parentrefactoe (diff)
downloadmisskey-9e5c8d94bff0352bca3b15fd75a7c6ccaa1df2ff.tar.gz
misskey-9e5c8d94bff0352bca3b15fd75a7c6ccaa1df2ff.tar.bz2
misskey-9e5c8d94bff0352bca3b15fd75a7c6ccaa1df2ff.zip
refactor
Diffstat (limited to 'packages/frontend/src/pages/drive.file.info.vue')
-rw-r--r--packages/frontend/src/pages/drive.file.info.vue12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/frontend/src/pages/drive.file.info.vue b/packages/frontend/src/pages/drive.file.info.vue
index 1def215afc..79c249413a 100644
--- a/packages/frontend/src/pages/drive.file.info.vue
+++ b/packages/frontend/src/pages/drive.file.info.vue
@@ -105,7 +105,7 @@ const folderHierarchy = computed(() => {
});
const isImage = computed(() => file.value?.type.startsWith('image/'));
-async function fetch() {
+async function _fetch_() {
fetching.value = true;
file.value = await misskeyApi('drive/files/show', {
@@ -134,7 +134,7 @@ function move() {
fileId: file.value.id,
folderId: folder[0] ? folder[0].id : null,
}).then(async () => {
- await fetch();
+ await _fetch_();
});
});
}
@@ -146,7 +146,7 @@ function toggleSensitive() {
fileId: file.value.id,
isSensitive: !file.value.isSensitive,
}).then(async () => {
- await fetch();
+ await _fetch_();
}).catch(err => {
os.alert({
type: 'error',
@@ -169,7 +169,7 @@ function rename() {
fileId: file.value.id,
name: name,
}).then(async () => {
- await fetch();
+ await _fetch_();
});
});
}
@@ -186,7 +186,7 @@ async function describe() {
fileId: file.value.id,
comment: caption.length === 0 ? null : caption,
}).then(async () => {
- await fetch();
+ await _fetch_();
});
},
closed: () => dispose(),
@@ -212,7 +212,7 @@ async function deleteFile() {
}
onMounted(async () => {
- await fetch();
+ await _fetch_();
});
</script>