Skip to content

Commit 7564a13

Browse files
authored
Merge pull request #6963 from LibreSign/backport/6956/stable33
[stable33] refactor: upper case first
2 parents e121c66 + ead6c9b commit 7564a13

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/Enum/FileStatus.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ enum FileStatus: int {
2828
public function getLabel(IL10N $l10n): string {
2929
return match($this) {
3030
// TRANSLATORS Name of the status when document is not a LibreSign file
31-
self::NOT_LIBRESIGN_FILE => $l10n->t('not LibreSign file'),
31+
self::NOT_LIBRESIGN_FILE => $l10n->t('Not LibreSign file'),
3232
// TRANSLATORS Name of the status that the document is still as a draft
33-
self::DRAFT => $l10n->t('draft'),
33+
self::DRAFT => $l10n->t('Draft'),
3434
// TRANSLATORS Name of the status that the document can be signed
3535
self::ABLE_TO_SIGN => $l10n->t('Ready to sign'),
3636
// TRANSLATORS Name of the status when the document has already been partially signed
3737
self::PARTIAL_SIGNED => $l10n->t('Partially signed'),
3838
// TRANSLATORS Name of the status when the document has been completely signed
39-
self::SIGNED => $l10n->t('signed'),
39+
self::SIGNED => $l10n->t('Signed'),
4040
// TRANSLATORS Name of the status when the document was deleted
41-
self::DELETED => $l10n->t('deleted'),
41+
self::DELETED => $l10n->t('Deleted'),
4242
// TRANSLATORS Name of the status when the document is currently being signed
43-
self::SIGNING_IN_PROGRESS => $l10n->t('signing in progress'),
43+
self::SIGNING_IN_PROGRESS => $l10n->t('Signing in progress'),
4444
};
4545
}
4646
}

src/utils/fileStatus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { FILE_STATUS } from '../constants.js'
1818

1919
const STATUS_CONFIG = {
2020
[FILE_STATUS.NOT_LIBRESIGN_FILE]: {
21-
label: () => t('libresign', 'not LibreSign file'),
21+
label: () => t('libresign', 'Not LibreSign file'),
2222
icon: mdiFileDocument,
2323
},
2424
[FILE_STATUS.DRAFT]: {

tests/integration/features/file/envelope.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Feature: envelope
6363
| (jq).ocs.data.message | Success |
6464
| (jq).ocs.data.name | Single Document |
6565
| (jq).ocs.data.status | 0 |
66-
| (jq).ocs.data.statusText | draft |
66+
| (jq).ocs.data.statusText | Draft |
6767
| (jq).ocs.data.nodeType | file |
6868
| (jq).ocs.data.files[0].name | Single Document |
6969
| (jq).ocs.data.files \| length | 1 |
@@ -81,7 +81,7 @@ Feature: envelope
8181
| (jq).ocs.data.message | Success |
8282
| (jq).ocs.data.name | Contract Package |
8383
| (jq).ocs.data.status | 0 |
84-
| (jq).ocs.data.statusText | draft |
84+
| (jq).ocs.data.statusText | Draft |
8585
| (jq).ocs.data.nodeType | envelope |
8686
| (jq).ocs.data.files[0].name | Contract |
8787
| (jq).ocs.data.files[1].name | Annex |

0 commit comments

Comments
 (0)