diff --git a/src/components/TestForm.vue b/src/components/TestForm.vue deleted file mode 100644 index 8315111..0000000 --- a/src/components/TestForm.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - diff --git a/src/components/item/docs/EditModal.vue b/src/components/item/docs/EditModal.vue index 50f0825..01cf80c 100644 --- a/src/components/item/docs/EditModal.vue +++ b/src/components/item/docs/EditModal.vue @@ -64,10 +64,15 @@ async function updateFile() { // TODO: Show success toast close(false); - } catch (e) {} + } catch (e) { + console.error('Error: ' + e); + } } function open() { + docs.value = { + name: props.docs.name, + }; modal.value?.open(); } diff --git a/src/lang/en.ts b/src/lang/en.ts index e54e1b4..593d002 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -51,7 +51,7 @@ export default { submit: 'Edit', }, action: { - create: 'Upload fil', + create: 'Upload file', edit: 'Rename file', share: 'Share', delete: 'Delete', @@ -112,12 +112,12 @@ export default { submit: 'Edit', }, action: { - create: 'Create Docs', - edit: 'Rename Docs', + create: 'Create docs', + edit: 'Rename docs', share: 'Share', delete: 'Delete', openInNewTab: 'Open in new tab', - confirmDelete: 'Are you sure you want to delete this Docs?', + confirmDelete: 'Are you sure you want to delete this docs?', }, }, }, diff --git a/src/lib/items/docs.ts b/src/lib/items/docs.ts index 6224a29..3bce554 100644 --- a/src/lib/items/docs.ts +++ b/src/lib/items/docs.ts @@ -1,6 +1,6 @@ import { ItemClass, type ItemType } from './items'; import { type FolderType } from './folders'; -import { api } from '@lib/helpers'; +import { api, fetchFromApi } from '@lib/helpers'; export class DocsClass extends ItemClass { private _text: string;