feat: remove redundant naming

- adjusted one test
Signed-off-by: edvardsanta <eduardosantamarco123@outlook.com>
This commit is contained in:
edvardsanta 2023-10-25 11:41:03 -03:00 committed by Tim deBoer
parent 320beb1058
commit 7dbbf90381
5 changed files with 6 additions and 10 deletions

View file

@ -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}

View file

@ -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">

View file

@ -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>

View file

@ -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({});

View file

@ -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}" />