fix(ui): allow to copy api url even in invalid state

This commit is contained in:
Pihkaal
2024-10-16 14:48:12 +02:00
parent 93e7fbf740
commit b9fb3eff17

View File

@@ -36,6 +36,7 @@ const apiUrl = computed((previous) => {
return `${baseApiUrl}?${params}`;
});
const isValidApiUrl = computed(() => !!apiUrl.value);
const { icon: copyUrlIcon, copy: copyUrl } = useCopyable(apiUrl);
@@ -170,7 +171,7 @@ const {
/>
<UButton
color="gray"
:disabled="!isValidState"
:disabled="!isValidApiUrl"
:icon="copyUrlIcon"
@click="copyUrl"
/>