chore: replace Name by Common Name

The entire name of this field is Common Name and not only Name.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
Vitor Mattos 2025-07-22 16:18:23 -03:00
parent 2d84d6a9ff
commit b363c58e6e
No known key found for this signature in database
GPG key ID: 6FECE2AD4809003A
4 changed files with 7 additions and 7 deletions

View file

@ -56,7 +56,7 @@ class RulesService {
public function getHelperText(string $fieldName) {
return match ($fieldName) {
'CN' => $this->l10n->t('Name (CN)'),
'CN' => $this->l10n->t('Common Name (CN)'),
'C' => $this->l10n->t('Two-letter ISO 3166 country code'),
'ST' => $this->l10n->t('Full name of states or provinces'),
'L' => $this->l10n->t('Name of a locality or place, such as a city, county, or other geographic region'),

View file

@ -21,10 +21,10 @@ export function selectCustonOption(id) {
export const options = [
{
id: 'CN',
label: t('libresign', 'Name (CN)'),
label: t('libresign', 'Common Name (CN)'),
max: 64,
value: '',
helperText: t('libresign', 'Name (CN)'),
helperText: t('libresign', 'Common Name (CN)'),
},
{
id: 'C',

View file

@ -11,7 +11,7 @@
<table class="grid">
<tbody>
<tr>
<td>{{ t('libresign', 'Name (CN)') }}</td>
<td>{{ t('libresign', 'Common Name (CN)') }}</td>
<td>{{ certificate.rootCert.commonName }}</td>
</tr>
<tr v-for="(customName) in certificate.rootCert.names" :key="customName.id" class="customNames">
@ -57,7 +57,7 @@
</div>
<div v-else id="formRootCertificate" class="form-libresign">
<div class="form-group">
<label for="commonName" class="form-heading--required">{{ t('libresign', 'Name (CN)') }}</label>
<label for="commonName" class="form-heading--required">{{ t('libresign', 'Common Name (CN)') }}</label>
<NcTextField id="commonName"
ref="commonName"
v-model="certificate.rootCert.commonName"

View file

@ -11,7 +11,7 @@
<table class="grid">
<tbody>
<tr>
<td>{{ t('libresign', 'Name (CN)') }}</td>
<td>{{ t('libresign', 'Common Name (CN)') }}</td>
<td>{{ certificate.rootCert.commonName }}</td>
</tr>
<tr v-for="(customName) in certificate.rootCert.names" :key="customName.id" class="customNames">
@ -53,7 +53,7 @@
</div>
<div v-else id="formRootCertificateOpenSsl" class="form-libresign">
<div class="form-group">
<label for="commonName" class="form-heading--required">{{ t('libresign', 'Name (CN)') }}</label>
<label for="commonName" class="form-heading--required">{{ t('libresign', 'Common Name (CN)') }}</label>
<NcTextField id="commonName"
ref="commonName"
v-model="certificate.rootCert.commonName"