diff --git a/src/components/UserArea.vue b/src/components/UserArea.vue index a73f5e6d..ffecfdd5 100644 --- a/src/components/UserArea.vue +++ b/src/components/UserArea.vue @@ -21,6 +21,9 @@ {{ $t('send_test_job') }} + {{ + $t('send_update_bitmap') + }} import { computed } from 'vue' import Icon from './base/Icon.vue' -import { jobs as jobsService } from '@/services' +import { jobs as jobsService, termsOfUse as termsOfUseService } from '@/services' const props = defineProps({ user: { @@ -66,6 +69,10 @@ const userRole = computed(() => { const test = () => { return jobsService.create({}) } +const send_update_bitmap = () => { + return termsOfUseService.patch(0, {}) +} + const userPicture = computed(() => { const style: { backgroundImage?: string @@ -96,7 +103,10 @@ const userPicture = computed(() => { "logout": "Logout", "join_slack_channel": "Join Slack Channel", "current_version": "Current version: {version}", - "send_test_job": "[staff only] Send test job" + "send_test_job": "[staff only] Send test job", + "send_update_bitmap": + "[staff only] Test update bitmap" + } } diff --git a/src/components/modules/lists/JobItem.vue b/src/components/modules/lists/JobItem.vue index dfe43825..168c7a6c 100644 --- a/src/components/modules/lists/JobItem.vue +++ b/src/components/modules/lists/JobItem.vue @@ -1,6 +1,6 @@ - + - : {{ item.extra.collection.name }} + : {{ item.extra.collection.name }} {{ $t(`jobs_status_${item.status}`) }} @@ -17,7 +17,7 @@ {{ $d(item.creationDate, 'precise') }} (#{{ item.id }}) - + - + @@ -168,7 +167,7 @@ span.DON { "jobs_type_BCQ": "Saving {total} item(s) in your collection", "jobs_type_RDX": "Remove {total} item(s) from your collection", "jobs_type_BCT": "Add {total} item(s) to your collection from Text Reuse", - + "jobs_type_UUB": "Update permissions", "jobs_status_DON": "done", "jobs_status_RUN": "in progress", "jobs_status_ERR": "error", diff --git a/src/services/index.ts b/src/services/index.ts index 3cde4913..35809e53 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -176,6 +176,7 @@ export const articlesSearch = app.service('articles-search') export const entityMentionsTimeline = app.service('entity-mentions-timeline') export const textReuseConnectedClusters = app.service('text-reuse-connected-clusters') export const passwordReset = app.service('password-reset') +export const termsOfUse = app.service('terms-of-use') export const MIDDLELAYER_API = import.meta.env.VITE_MIDDLELAYER_API export const MIDDLELAYER_MEDIA_PATH = import.meta.env.VITE_MIDDLELAYER_MEDIA_PATH diff --git a/src/stores/jobs.ts b/src/stores/jobs.ts index 999e91c9..4e3d9a9f 100644 --- a/src/stores/jobs.ts +++ b/src/stores/jobs.ts @@ -49,6 +49,10 @@ export const useJobsStore = defineStore('jobs', { d => new Job({ ...d, + extra: { + ...d.extra, + sq: d.extra?.query_hash ?? '' + }, progress: d.extra ? d.extra.progress : 0 }) )
+ - + @@ -168,7 +167,7 @@ span.DON { "jobs_type_BCQ": "Saving {total} item(s) in your collection", "jobs_type_RDX": "Remove {total} item(s) from your collection", "jobs_type_BCT": "Add {total} item(s) to your collection from Text Reuse", - + "jobs_type_UUB": "Update permissions", "jobs_status_DON": "done", "jobs_status_RUN": "in progress", "jobs_status_ERR": "error", diff --git a/src/services/index.ts b/src/services/index.ts index 3cde4913..35809e53 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -176,6 +176,7 @@ export const articlesSearch = app.service('articles-search') export const entityMentionsTimeline = app.service('entity-mentions-timeline') export const textReuseConnectedClusters = app.service('text-reuse-connected-clusters') export const passwordReset = app.service('password-reset') +export const termsOfUse = app.service('terms-of-use') export const MIDDLELAYER_API = import.meta.env.VITE_MIDDLELAYER_API export const MIDDLELAYER_MEDIA_PATH = import.meta.env.VITE_MIDDLELAYER_MEDIA_PATH diff --git a/src/stores/jobs.ts b/src/stores/jobs.ts index 999e91c9..4e3d9a9f 100644 --- a/src/stores/jobs.ts +++ b/src/stores/jobs.ts @@ -49,6 +49,10 @@ export const useJobsStore = defineStore('jobs', { d => new Job({ ...d, + extra: { + ...d.extra, + sq: d.extra?.query_hash ?? '' + }, progress: d.extra ? d.extra.progress : 0 }) )
+ @@ -168,7 +167,7 @@ span.DON { "jobs_type_BCQ": "Saving {total} item(s) in your collection", "jobs_type_RDX": "Remove {total} item(s) from your collection", "jobs_type_BCT": "Add {total} item(s) to your collection from Text Reuse", - + "jobs_type_UUB": "Update permissions", "jobs_status_DON": "done", "jobs_status_RUN": "in progress", "jobs_status_ERR": "error", diff --git a/src/services/index.ts b/src/services/index.ts index 3cde4913..35809e53 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -176,6 +176,7 @@ export const articlesSearch = app.service('articles-search') export const entityMentionsTimeline = app.service('entity-mentions-timeline') export const textReuseConnectedClusters = app.service('text-reuse-connected-clusters') export const passwordReset = app.service('password-reset') +export const termsOfUse = app.service('terms-of-use') export const MIDDLELAYER_API = import.meta.env.VITE_MIDDLELAYER_API export const MIDDLELAYER_MEDIA_PATH = import.meta.env.VITE_MIDDLELAYER_MEDIA_PATH diff --git a/src/stores/jobs.ts b/src/stores/jobs.ts index 999e91c9..4e3d9a9f 100644 --- a/src/stores/jobs.ts +++ b/src/stores/jobs.ts @@ -49,6 +49,10 @@ export const useJobsStore = defineStore('jobs', { d => new Job({ ...d, + extra: { + ...d.extra, + sq: d.extra?.query_hash ?? '' + }, progress: d.extra ? d.extra.progress : 0 }) )
@@ -168,7 +167,7 @@ span.DON { "jobs_type_BCQ": "Saving {total} item(s) in your collection", "jobs_type_RDX": "Remove {total} item(s) from your collection", "jobs_type_BCT": "Add {total} item(s) to your collection from Text Reuse", - + "jobs_type_UUB": "Update permissions", "jobs_status_DON": "done", "jobs_status_RUN": "in progress", "jobs_status_ERR": "error", diff --git a/src/services/index.ts b/src/services/index.ts index 3cde4913..35809e53 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -176,6 +176,7 @@ export const articlesSearch = app.service('articles-search') export const entityMentionsTimeline = app.service('entity-mentions-timeline') export const textReuseConnectedClusters = app.service('text-reuse-connected-clusters') export const passwordReset = app.service('password-reset') +export const termsOfUse = app.service('terms-of-use') export const MIDDLELAYER_API = import.meta.env.VITE_MIDDLELAYER_API export const MIDDLELAYER_MEDIA_PATH = import.meta.env.VITE_MIDDLELAYER_MEDIA_PATH diff --git a/src/stores/jobs.ts b/src/stores/jobs.ts index 999e91c9..4e3d9a9f 100644 --- a/src/stores/jobs.ts +++ b/src/stores/jobs.ts @@ -49,6 +49,10 @@ export const useJobsStore = defineStore('jobs', { d => new Job({ ...d, + extra: { + ...d.extra, + sq: d.extra?.query_hash ?? '' + }, progress: d.extra ? d.extra.progress : 0 }) )