Skip to content

Commit

Permalink
62 - 63 - change dropdown with tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Milos committed Jan 12, 2024
1 parent ade3d53 commit dc7968b
Showing 1 changed file with 11 additions and 14 deletions.
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

0 comments on commit dc7968b

Please sign in to comment.