respect readonly connection flag in table editor

This commit is contained in:
Jan Prochazka
2024-08-27 11:13:10 +02:00
parent 93f64a6bab
commit b9737533bd
7 changed files with 58 additions and 16 deletions

View File

@@ -8,9 +8,12 @@
export let icon = 'icon chevron-down';
export let menu;
export let narrow = false;
export let disabled = false;
let domButton;
function handleClick() {
if (disabled) return;
const rect = domButton.getBoundingClientRect();
const left = rect.left;
const top = rect.bottom;
@@ -18,6 +21,6 @@
}
</script>
<InlineButton square {narrow} on:click={handleClick} bind:this={domButton}>
<InlineButton square {narrow} on:click={handleClick} bind:this={domButton} {disabled}>
<FontIcon {icon} />
</InlineButton>