Skip to content

Modern Docker Management, Designed for Everyone

fix: double label text on template buttons

Kyle Mendell6316833c79f5
diff --git a/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte b/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
index becfd8f9d..7c8c8f54e 100644
--- a/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
+++ b/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
@@ -130,10 +130,9 @@
<ArcaneButton
action="create"
onclick={() => goto(`/projects/new?templateId=${template.id}`)}
+ customLabel={m.compose_create_project()}
class="w-full gap-2 sm:w-auto"
- >
- {m.compose_create_project()}
- </ArcaneButton>
+ />
{#if canDownload}
<ArcaneButton
@@ -165,10 +164,9 @@
disabled={isDeleting}
loading={isDeleting}
loadingLabel={m.common_action_deleting()}
+ customLabel={m.templates_delete_template()}
class="w-full gap-2 sm:w-auto"
- >
- {m.templates_delete_template()}
- </ArcaneButton>
+ />
{/if}
</div>
</div>
diff --git a/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte b/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte
index 59fceb519..51591122d 100644
--- a/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte
+++ b/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte
@@ -33,9 +33,12 @@
<h3 class="text-lg font-semibold">{m.templates_registries_section_title()}</h3>
<p class="text-muted-foreground text-sm">{m.templates_registries_section_description()}</p>
</div>
- <ArcaneButton action="create" onclick={onAddRegistry} class="w-full sm:w-auto">
- {m.common_add_button({ resource: m.resource_registry_cap() })}
- </ArcaneButton>
+ <ArcaneButton
+ action="create"
+ onclick={onAddRegistry}
+ customLabel={m.common_add_button({ resource: m.resource_registry_cap() })}
+ class="w-full sm:w-auto"
+ />
</div>
{#if registries.length === 0}