diff --git a/apps/ui/src/components/DriveTools.vue b/apps/ui/src/components/DriveTools.vue index bad9726c..ad815b5c 100644 --- a/apps/ui/src/components/DriveTools.vue +++ b/apps/ui/src/components/DriveTools.vue @@ -60,7 +60,7 @@ import {UiMixin} from './UiMixin.ts'; import ToolButton from './ToolButton.vue'; export default { - name: 'PreviewHeader', + name: 'DriveTools', mixins: [UtilsMixin, UiMixin], components: {ToolButton}, props: { diff --git a/apps/ui/src/components/GitFooter.vue b/apps/ui/src/components/GitFooter.vue index e5f97086..d75c4c75 100644 --- a/apps/ui/src/components/GitFooter.vue +++ b/apps/ui/src/components/GitFooter.vue @@ -4,7 +4,7 @@
- + No git remote, go to settings @@ -41,6 +41,20 @@ export default { }); }); }, + async reset_pull(event) { + await disableElement(event, async () => { + await this.authenticatedClient.fetchApi(`/api/git/${this.driveId}/reset_local`, { + method: 'post' + }); + await this.authenticatedClient.fetchApi(`/api/git/${this.driveId}/pull`, { + method: 'post', + headers: { + 'Content-type': 'application/json' + }, + body: JSON.stringify({}) + }); + }); + }, async pull(event) { await disableElement(event, async () => { await this.authenticatedClient.fetchApi(`/api/git/${this.driveId}/pull`, { diff --git a/apps/ui/src/components/GitSideBar.vue b/apps/ui/src/components/GitSideBar.vue index 71ed6a10..8bed5d0b 100644 --- a/apps/ui/src/components/GitSideBar.vue +++ b/apps/ui/src/components/GitSideBar.vue @@ -29,6 +29,7 @@ @@ -37,6 +38,7 @@