mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
update: tooltip.
This commit is contained in:
+6
-1
@@ -97,6 +97,8 @@
|
||||
const readOnlyCompartment = new Compartment();
|
||||
const wrapCompartment = new Compartment();
|
||||
|
||||
let tooltipMessage = $state('Copy document');
|
||||
|
||||
// Store the original data to preserve system values
|
||||
let originalData = $state<JsonValue>(data);
|
||||
|
||||
@@ -874,11 +876,14 @@
|
||||
class="icon-button"
|
||||
on:click={async () => {
|
||||
await copy(JSON.stringify(data, null, 2));
|
||||
tooltipMessage = 'Copied';
|
||||
setTimeout(() => (tooltipMessage = 'Copy document'), 1000);
|
||||
}}>
|
||||
<Icon icon={IconDuplicate} size="s" />
|
||||
</Button>
|
||||
|
||||
<span slot="tooltip"> Copy object </span>
|
||||
<!-- Claude: message not updating -->
|
||||
<span slot="tooltip">{tooltipMessage}</span>
|
||||
</Tooltip>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user