mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
improve workflow button
This commit is contained in:
parent
de45555c5a
commit
a3b823d33f
@ -133,7 +133,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
const triggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
|
const triggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
|
||||||
const popoverList = triggerList.map(function (el) {
|
const popoverList = triggerList.map(function (el) {
|
||||||
console.log('popover', el)
|
//console.log('popover', el)
|
||||||
return new Popover(el, {
|
return new Popover(el, {
|
||||||
html: true,
|
html: true,
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
<button v-if="hasWorkflow"
|
<button v-if="hasWorkflow"
|
||||||
class="btn btn-misc"
|
class="btn btn-misc"
|
||||||
@click="openModal">
|
@click="openModal">
|
||||||
{{ countWorkflows }} workflows
|
<b>{{ countWorkflows }}</b>
|
||||||
|
<template v-if="countWorkflows > 1">{{ $t('workflows') }}</template>
|
||||||
|
<template v-else>{{ $t('workflow') }}</template>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<pick-workflow v-else-if="allowCreate"
|
<pick-workflow v-else-if="allowCreate"
|
||||||
@ -98,6 +100,8 @@ export default {
|
|||||||
messages: {
|
messages: {
|
||||||
fr: {
|
fr: {
|
||||||
workflow_list: "Liste des workflows",
|
workflow_list: "Liste des workflows",
|
||||||
|
workflow: " workflow",
|
||||||
|
workflows: " workflows",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user