diff --git a/package.json b/package.json index 8f9baa694..1f5bb2429 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.45", + "version": "2.14.46", "private": true, "scripts": { "dev": "vite --host", @@ -61,4 +61,4 @@ "vue-tsc": "^0.35.2", "workbox-window": "^7.0.0" } -} +} \ No newline at end of file diff --git a/src/api/artifacts/index.ts b/src/api/artifacts/index.ts index f1cf624f4..571186390 100644 --- a/src/api/artifacts/index.ts +++ b/src/api/artifacts/index.ts @@ -15,10 +15,10 @@ export function useArtifactsApi() { method: 'get', }); }, - syncOneArtifact: (name: string): AxiosPromise => { + syncOneArtifact: (name: string, method = 'get'): AxiosPromise => { return request({ url: `/api/sync/artifact/${encodeURIComponent(name)}`, - method: 'get', + method, }); }, createArtifact: (data: Artifact): AxiosPromise => { @@ -41,10 +41,10 @@ export function useArtifactsApi() { method: 'delete', }); }, - syncAllArtifact: (): AxiosPromise => { + syncAllArtifact: (method = 'get'): AxiosPromise => { return request({ url: '/api/sync/artifacts', - method: 'get', + method, }); }, }; diff --git a/src/components/ArtifactsListItem.vue b/src/components/ArtifactsListItem.vue index a13f39769..a0c957ea7 100644 --- a/src/components/ArtifactsListItem.vue +++ b/src/components/ArtifactsListItem.vue @@ -88,6 +88,7 @@