mirror of
https://github.com/polaroi8d/cactoide.git
synced 2026-03-22 14:15:28 +00:00
feat: add edit events functionality
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
const eventId = $page.params.id;
|
||||
|
||||
function copyEventLink() {
|
||||
const copyEventLink = () => {
|
||||
const url = `${window.location.origin}/event/${eventId}`;
|
||||
navigator.clipboard.writeText(url).then(() => {
|
||||
success = 'Event link copied to clipboard!';
|
||||
@@ -43,12 +43,12 @@
|
||||
success = '';
|
||||
}, 3000);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
function clearMessages() {
|
||||
const clearMessages = () => {
|
||||
error = '';
|
||||
success = '';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
@@ -300,7 +300,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
succcess: {success}
|
||||
<!-- Action Buttons -->
|
||||
<div class="max-w-2xl">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user