Skip to content

Commit f1192dd

Browse files
committed
Create tooltip for model
1 parent 5e7f9ef commit f1192dd

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

components/modal/createModel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<template>
6666
<ModalBase :id="id" @close="handleClose">
6767
<form @submit="onSubmit">
68-
<h3 class="text-lg font-bold">Create a new Model</h3>
68+
<ModalTitleModel>Create a new Model</ModalTitleModel>
6969
<ModalBaseModel
7070
:is-disabled="form.isSubmitting.value"
7171
:fields="fields"

components/modal/editModel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<template>
7777
<ModalBase :id="id" @close="handleClose">
7878
<form @submit="onSubmit">
79-
<h3 class="text-lg font-bold">Edit the Model</h3>
79+
<ModalTitleModel>Edit the Model</ModalTitleModel>
8080
<ModalBaseModel
8181
:is-disabled="form.isSubmitting.value"
8282
:fields="fields"

components/modal/titleModel.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<script lang="ts" setup>
2+
import { InformationCircleIcon } from '@heroicons/vue/24/solid';
3+
</script>
4+
5+
<template>
6+
<h3 class="text-lg font-bold">
7+
<slot></slot>
8+
<div
9+
class="tooltip tooltip-bottom"
10+
data-tip="The model's name is case-sensitive. If you input &quot;Users&quot;, then the URL path for that model will be &quot;\Users&quot;."
11+
>
12+
<InformationCircleIcon class="ml-2 w-4 h-4" />
13+
</div>
14+
</h3>
15+
</template>

0 commit comments

Comments
 (0)