Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

62 - 63 - change dropdown with tooltip #75

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions src/components/NegotiationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,11 @@
</div>
</div>
</div>
<div v-if="section.description" class="mb-4 d-flex justify-content-end">
<div class="dropdown mx-2">
<i data-bs-toggle="dropdown"
aria-expanded="false" class="bi bi-info-circle"/>
<div class="dropdown-menu p-3 text-body-secondary">
<p> {{section.description}} </p>
</div>
</div>

<div v-if="section.description" class="mx-3 d-flex justify-content-end">
<i class="py-1 bi bi-info-circle" data-bs-toggle="tooltip" :data-bs-title="section.description"></i>
</div>

<div
v-for="criteria in section.accessCriteria"
:key="criteria.name"
Expand All @@ -99,12 +95,7 @@
{{ criteria.label }}
</label>

<span v-if="criteria.description" class="dropdown mx-2">
<i data-bs-toggle="dropdown" aria-expanded="false" class="bi bi-info-circle" />
<div class="dropdown-menu p-3 text-body-secondary">
<p> {{criteria.description}} </p>
</div>
</span>
<i v-if="criteria.description" class="mx-2 py-1 bi bi-info-circle" data-bs-toggle="tooltip" :data-bs-title="criteria.description"></i>

<textarea
v-if="criteria.type === 'textarea'"
Expand Down Expand Up @@ -179,6 +170,7 @@
</template>

<script>
import { Tooltip } from 'bootstrap'
import FeedbackModal from "@/components/modals/FeedbackModal.vue"
import ResourcesList from "@/components/ResourcesList.vue"
import { FormWizard, TabContent } from "vue3-form-wizard"
Expand Down Expand Up @@ -242,6 +234,11 @@ export default {
}
}
},
mounted () {
new Tooltip(document.body, {
selector: "[data-bs-toggle='tooltip']",
})
},
methods: {
...mapActions(["retrieveRequestById", "retrieveAccessCriteriaByResourceId", "createNegotiation"]),
async startNegotiation() {
Expand Down