mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
Add cancel button on secrets tab (#1599)
This commit is contained in:
parent
a2f226f7f9
commit
0148151f3d
5 changed files with 6 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"cancel": "Cancel",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"welcome": "Welcome to Woodpecker",
|
"welcome": "Welcome to Woodpecker",
|
||||||
"repos": "Repos",
|
"repos": "Repos",
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
i18n-prefix="admin.settings.secrets."
|
i18n-prefix="admin.settings.secrets."
|
||||||
:is-saving="isSaving"
|
:is-saving="isSaving"
|
||||||
@save="createSecret"
|
@save="createSecret"
|
||||||
|
@cancel="selectedSecret = undefined"
|
||||||
/>
|
/>
|
||||||
</Panel>
|
</Panel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
i18n-prefix="org.settings.secrets."
|
i18n-prefix="org.settings.secrets."
|
||||||
:is-saving="isSaving"
|
:is-saving="isSaving"
|
||||||
@save="createSecret"
|
@save="createSecret"
|
||||||
|
@cancel="selectedSecret = undefined"
|
||||||
/>
|
/>
|
||||||
</Panel>
|
</Panel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
i18n-prefix="repo.settings.secrets."
|
i18n-prefix="repo.settings.secrets."
|
||||||
:is-saving="isSaving"
|
:is-saving="isSaving"
|
||||||
@save="createSecret"
|
@save="createSecret"
|
||||||
|
@cancel="selectedSecret = undefined"
|
||||||
/>
|
/>
|
||||||
</Panel>
|
</Panel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
<CheckboxesField v-model="innerValue.event" :options="secretEventsOptions" />
|
<CheckboxesField v-model="innerValue.event" :options="secretEventsOptions" />
|
||||||
</InputField>
|
</InputField>
|
||||||
|
|
||||||
|
<Button type="button" color="gray" :text="$t('cancel')" @click="$emit('cancel')" />
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
color="green"
|
color="green"
|
||||||
|
@ -54,6 +55,7 @@ const props = defineProps<{
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(event: 'update:modelValue', value: Partial<Secret> | undefined): void;
|
(event: 'update:modelValue', value: Partial<Secret> | undefined): void;
|
||||||
(event: 'save', value: Partial<Secret>): void;
|
(event: 'save', value: Partial<Secret>): void;
|
||||||
|
(event: 'cancel'): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const i18n = useI18n();
|
const i18n = useI18n();
|
||||||
|
|
Loading…
Reference in a new issue