mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-11 10:05:27 +00:00
Fix secret translations (#3734)
This commit is contained in:
parent
fd57e4ad05
commit
f034954f83
2 changed files with 6 additions and 8 deletions
|
@ -2,26 +2,25 @@
|
||||||
<Panel>
|
<Panel>
|
||||||
<div class="flex flex-row border-b mb-4 pb-4 items-center dark:border-wp-background-100">
|
<div class="flex flex-row border-b mb-4 pb-4 items-center dark:border-wp-background-100">
|
||||||
<div class="ml-2">
|
<div class="ml-2">
|
||||||
<h1 class="text-xl text-wp-text-100">{{ $t('user.settings.secrets.secrets') }}</h1>
|
<h1 class="text-xl text-wp-text-100">{{ $t('secrets.secrets') }}</h1>
|
||||||
<p class="text-sm text-wp-text-alt-100">
|
<p class="text-sm text-wp-text-alt-100">
|
||||||
{{ $t('user.settings.secrets.desc') }}
|
{{ $t('secrets.desc') }}
|
||||||
<DocsLink :topic="$t('user.settings.secrets.secrets')" url="docs/usage/secrets" />
|
<DocsLink :topic="$t('secrets.secrets')" url="docs/usage/secrets" />
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
v-if="selectedSecret"
|
v-if="selectedSecret"
|
||||||
class="ml-auto"
|
class="ml-auto"
|
||||||
:text="$t('user.settings.secrets.show')"
|
:text="$t('secrets.show')"
|
||||||
start-icon="back"
|
start-icon="back"
|
||||||
@click="selectedSecret = undefined"
|
@click="selectedSecret = undefined"
|
||||||
/>
|
/>
|
||||||
<Button v-else class="ml-auto" :text="$t('user.settings.secrets.add')" start-icon="plus" @click="showAddSecret" />
|
<Button v-else class="ml-auto" :text="$t('secrets.add')" start-icon="plus" @click="showAddSecret" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<SecretList
|
<SecretList
|
||||||
v-if="!selectedSecret"
|
v-if="!selectedSecret"
|
||||||
v-model="secrets"
|
v-model="secrets"
|
||||||
i18n-prefix="user.settings.secrets."
|
|
||||||
:is-deleting="isDeleting"
|
:is-deleting="isDeleting"
|
||||||
@edit="editSecret"
|
@edit="editSecret"
|
||||||
@delete="deleteSecret"
|
@delete="deleteSecret"
|
||||||
|
@ -30,7 +29,6 @@
|
||||||
<SecretEdit
|
<SecretEdit
|
||||||
v-else
|
v-else
|
||||||
v-model="selectedSecret"
|
v-model="selectedSecret"
|
||||||
i18n-prefix="user.settings.secrets."
|
|
||||||
:is-saving="isSaving"
|
:is-saving="isSaving"
|
||||||
@save="createSecret"
|
@save="createSecret"
|
||||||
@cancel="selectedSecret = undefined"
|
@cancel="selectedSecret = undefined"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<Tab id="general" :title="$t('user.settings.general.general')">
|
<Tab id="general" :title="$t('user.settings.general.general')">
|
||||||
<UserGeneralTab />
|
<UserGeneralTab />
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab id="secrets" :title="$t('user.settings.secrets.secrets')">
|
<Tab id="secrets" :title="$t('secrets.secrets')">
|
||||||
<UserSecretsTab />
|
<UserSecretsTab />
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab id="cli-and-api" :title="$t('user.settings.cli_and_api.cli_and_api')">
|
<Tab id="cli-and-api" :title="$t('user.settings.cli_and_api.cli_and_api')">
|
||||||
|
|
Loading…
Reference in a new issue