Merge pull request #2464 from mslourens/make_labels_more_consistent

make labels for editing more consistent
This commit is contained in:
Martin McKeaveney 2021-08-25 16:51:33 +01:00 committed by GitHub
commit c3adff5651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 9 deletions

View File

@ -42,9 +42,9 @@
<Modal bind:this={modal} on:hide={onCancel}>
<ModalContent
title="Update Datasource"
title="Edit Datasource"
size="L"
confirmText="Update"
confirmText="Save"
onConfirm={updateDatasource}
disabled={error || !name || !datasource?.type}
>

View File

@ -26,7 +26,7 @@
<div slot="control" class="icon">
<Icon size="S" hoverable name="MoreSmallList" />
</div>
<MenuItem icon="Edit" on:click={updateDatasourceDialog.show}>Update</MenuItem>
<MenuItem icon="Edit" on:click={updateDatasourceDialog.show}>Edit</MenuItem>
<MenuItem icon="Delete" on:click={confirmDeleteDialog.show}>Delete</MenuItem>
</ActionMenu>

View File

@ -54,9 +54,7 @@
</MenuItem>
{/if}
{#if !app.deployed}
<MenuItem on:click={() => updateApp(app)} icon="Edit">
Update
</MenuItem>
<MenuItem on:click={() => updateApp(app)} icon="Edit">Edit</MenuItem>
<MenuItem on:click={() => deleteApp(app)} icon="Delete">
Delete
</MenuItem>

View File

@ -83,7 +83,7 @@
</MenuItem>
{/if}
{#if !app.deployed}
<MenuItem on:click={() => updateApp(app)} icon="Edit">Update</MenuItem>
<MenuItem on:click={() => updateApp(app)} icon="Edit">Edit</MenuItem>
<MenuItem on:click={() => deleteApp(app)} icon="Delete">Delete</MenuItem>
{/if}
</ActionMenu>

View File

@ -103,8 +103,8 @@
<Modal bind:this={modal} on:hide={onCancel} on:show={onShow}>
<ModalContent
title={"Update app"}
confirmText={"Update app"}
title={"Edit app"}
confirmText={"Save"}
onConfirm={updateApp}
disabled={!(valid && dirty)}
>