mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-24 10:18:53 +00:00
feat: remove redundant naming
- adjusted one test Signed-off-by: edvardsanta <eduardosantamarco123@outlook.com>
This commit is contained in:
parent
320beb1058
commit
7dbbf90381
5 changed files with 6 additions and 10 deletions
|
|
@ -418,7 +418,7 @@ function errorCallback(container: ContainerInfoUI, errorMessage: string): void {
|
|||
{#if $containersInfos.length > 0}
|
||||
<Prune type="containers" engines="{enginesList}" />
|
||||
{/if}
|
||||
<Button on:click="{() => toggleCreateContainer()}" icon="{faPlusCircle}">Create a container</Button>
|
||||
<Button on:click="{() => toggleCreateContainer()}" icon="{faPlusCircle}">Create</Button>
|
||||
{#if providerPodmanConnections.length > 0}
|
||||
<KubePlayButton />
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -222,11 +222,9 @@ function computeInterval(): number {
|
|||
<Prune type="images" engines="{enginesList}" />
|
||||
{/if}
|
||||
<Button on:click="{() => gotoPullImage()}" title="Pull Image From a Registry" icon="{faArrowCircleDown}">
|
||||
Pull an image
|
||||
</Button>
|
||||
<Button on:click="{() => gotoBuildImage()}" title="Build Image from Containerfile" icon="{faCube}">
|
||||
Build an image
|
||||
Pull
|
||||
</Button>
|
||||
<Button on:click="{() => gotoBuildImage()}" title="Build Image from Containerfile" icon="{faCube}">Build</Button>
|
||||
</div>
|
||||
|
||||
<div slot="bottom-additional-actions" class="flex flex-row justify-start items-center w-full">
|
||||
|
|
|
|||
|
|
@ -74,6 +74,4 @@ async function prune(type: string) {
|
|||
}
|
||||
</script>
|
||||
|
||||
<Button on:click="{() => openPruneDialog()}" title="Remove unused images" icon="{faTrash}">
|
||||
Prune {type}
|
||||
</Button>
|
||||
<Button on:click="{() => openPruneDialog()}" title="Remove unused images" icon="{faTrash}">Prune</Button>
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ describe('Create volume', () => {
|
|||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
const createVolumeButtonTitle = 'Create a volume';
|
||||
const createVolumeButtonTitle = 'Create';
|
||||
test('no create volume button if no providers', async () => {
|
||||
providerInfos.set([]);
|
||||
await waitRender({});
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ function gotoCreateVolume(): void {
|
|||
<NavPage bind:searchTerm="{searchTerm}" title="volumes">
|
||||
<div slot="additional-actions" class="space-x-2 flex flex-nowrap">
|
||||
{#if providerConnections.length > 0}
|
||||
<Button on:click="{() => gotoCreateVolume()}" icon="{faPlusCircle}">Create a volume</Button>
|
||||
<Button on:click="{() => gotoCreateVolume()}" icon="{faPlusCircle}">Create</Button>
|
||||
{/if}
|
||||
{#if $volumeListInfos.map(volumeInfo => volumeInfo.Volumes).flat().length > 0}
|
||||
<Prune type="volumes" engines="{enginesList}" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue