mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-21 03:06:15 +08:00
Merge pull request #8413 from aignatov-bio/ai-sci-11808-fix-tooltip-on-na-button
Fix tooltip on NA button [SCI-11808]
This commit is contained in:
commit
16c9d8fa71
1 changed files with 7 additions and 2 deletions
|
@ -19,7 +19,8 @@
|
||||||
{{ i18n.t('forms.fields.submitted_by', { date: field.field_value.submitted_at, user: field.field_value.submitted_by_full_name}) }}
|
{{ i18n.t('forms.fields.submitted_by', { date: field.field_value.submitted_at, user: field.field_value.submitted_by_full_name}) }}
|
||||||
</span>
|
</span>
|
||||||
<button class="btn btn-secondary mb-0.5"
|
<button class="btn btn-secondary mb-0.5"
|
||||||
:title="i18n.t('forms.fields.mark_as_na_tooltip') "
|
:key="this.field.field_value?.value"
|
||||||
|
:title="this.field.field_value?.value ? i18n.t('forms.fields.mark_as_na_tooltip') : ''"
|
||||||
data-toggle="tooltip"
|
data-toggle="tooltip"
|
||||||
data-placement="top"
|
data-placement="top"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
@ -90,9 +91,9 @@ export default {
|
||||||
if (this.$refs.description) {
|
if (this.$refs.description) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
window.renderElementSmartAnnotations(this.$refs.description, 'span');
|
window.renderElementSmartAnnotations(this.$refs.description, 'span');
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
unit() {
|
unit() {
|
||||||
|
@ -111,6 +112,10 @@ export default {
|
||||||
value,
|
value,
|
||||||
this.markAsNa
|
this.markAsNa
|
||||||
);
|
);
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue