improve workflow button

This commit is contained in:
Mathieu Jaumotte 2022-01-30 16:43:09 +01:00
parent de45555c5a
commit a3b823d33f
2 changed files with 6 additions and 2 deletions

View File

@ -133,7 +133,7 @@ export default {
mounted() {
const triggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
const popoverList = triggerList.map(function (el) {
console.log('popover', el)
//console.log('popover', el)
return new Popover(el, {
html: true,
});

View File

@ -3,7 +3,9 @@
<button v-if="hasWorkflow"
class="btn btn-misc"
@click="openModal">
{{ countWorkflows }} workflows
<b>{{ countWorkflows }}</b>
<template v-if="countWorkflows > 1">{{ $t('workflows') }}</template>
<template v-else>{{ $t('workflow') }}</template>
</button>
<pick-workflow v-else-if="allowCreate"
@ -98,6 +100,8 @@ export default {
messages: {
fr: {
workflow_list: "Liste des workflows",
workflow: " workflow",
workflows: " workflows",
}
}
}