Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/Enum/FileStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ enum FileStatus: int {
public function getLabel(IL10N $l10n): string {
return match($this) {
// TRANSLATORS Name of the status when document is not a LibreSign file
self::NOT_LIBRESIGN_FILE => $l10n->t('not LibreSign file'),
self::NOT_LIBRESIGN_FILE => $l10n->t('Not LibreSign file'),
// TRANSLATORS Name of the status that the document is still as a draft
self::DRAFT => $l10n->t('draft'),
self::DRAFT => $l10n->t('Draft'),
// TRANSLATORS Name of the status that the document can be signed
self::ABLE_TO_SIGN => $l10n->t('Ready to sign'),
// TRANSLATORS Name of the status when the document has already been partially signed
self::PARTIAL_SIGNED => $l10n->t('Partially signed'),
// TRANSLATORS Name of the status when the document has been completely signed
self::SIGNED => $l10n->t('signed'),
self::SIGNED => $l10n->t('Signed'),
// TRANSLATORS Name of the status when the document was deleted
self::DELETED => $l10n->t('deleted'),
self::DELETED => $l10n->t('Deleted'),
// TRANSLATORS Name of the status when the document is currently being signed
self::SIGNING_IN_PROGRESS => $l10n->t('signing in progress'),
self::SIGNING_IN_PROGRESS => $l10n->t('Signing in progress'),
};
}
}
2 changes: 1 addition & 1 deletion src/utils/fileStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { FILE_STATUS } from '../constants.js'

const STATUS_CONFIG = {
[FILE_STATUS.NOT_LIBRESIGN_FILE]: {
label: () => t('libresign', 'not LibreSign file'),
label: () => t('libresign', 'Not LibreSign file'),
icon: mdiFileDocument,
},
[FILE_STATUS.DRAFT]: {
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/features/file/envelope.feature
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Feature: envelope
| (jq).ocs.data.message | Success |
| (jq).ocs.data.name | Single Document |
| (jq).ocs.data.status | 0 |
| (jq).ocs.data.statusText | draft |
| (jq).ocs.data.statusText | Draft |
| (jq).ocs.data.nodeType | file |
| (jq).ocs.data.files[0].name | Single Document |
| (jq).ocs.data.files \| length | 1 |
Expand All @@ -81,7 +81,7 @@ Feature: envelope
| (jq).ocs.data.message | Success |
| (jq).ocs.data.name | Contract Package |
| (jq).ocs.data.status | 0 |
| (jq).ocs.data.statusText | draft |
| (jq).ocs.data.statusText | Draft |
| (jq).ocs.data.nodeType | envelope |
| (jq).ocs.data.files[0].name | Contract |
| (jq).ocs.data.files[1].name | Annex |
Expand Down
Loading