Skip to content

Commit

Permalink
Warn that re-run will overwrite results, fix #84
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Jan 3, 2024
1 parent 6efa665 commit 34e8fc9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/corpus/job/JobStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<JobStatusMessage :corpus-id="corpusId" class="font-bold" />
</div>

<div class="text-sm">
<div class="text-sm text-right">
<ActionButton
v-if="!isJobRunning"
:variant="sparvStatus.isReady ? 'primary' : null"
Expand All @@ -22,6 +22,10 @@
<ActionButton v-else variant="danger" class="ml-2" @click="abortJob">
{{ $t("job.abort") }}
</ActionButton>

<div v-if="!isJobRunning && sparvStatus.isDone">
<icon icon="circle-info" /> {{ $t("job.rerun.overwrite") }}
</div>
</div>
</div>

Expand Down
2 changes: 2 additions & 0 deletions src/fontawesome.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
faTrashCan,
} from "@fortawesome/free-regular-svg-icons";
import {
faCircleInfo,
faDownload,
faGears,
faPen,
Expand All @@ -21,6 +22,7 @@ import {
} from "@fortawesome/free-solid-svg-icons";

library.add(
faCircleInfo,
faDownload,
faFile,
faGears,
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ config.loading: Loading metadata
config.saving: Saving metadata
job.run: Run annotation
job.rerun: Re-run annotation
job.rerun.overwrite: Previous results will be overwritten
job.abort: Abort
job.aborting: Aborting annotation job
job.starting: Queueing annotation job
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/sv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ config.loading: Hämtar metadata
config.saving: Sparar metadata
job.run: Starta annotering
job.rerun: Starta om annotering
job.rerun.overwrite: Tidigare resultat kommer att skrivas över
job.abort: Avbryt
job.aborting: Avbryter annotering
job.starting: Lägger annotering i kö
Expand Down

0 comments on commit 34e8fc9

Please sign in to comment.