mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18:24 +00:00 
			
		
		
		
	fix creating workflow from document in accompanying course
This commit is contained in:
		| @@ -8,14 +8,13 @@ | ||||
|             </div> | ||||
|             <div class="col-8"> | ||||
|                 <h3>{{ document.title }}</h3> | ||||
|                 <small>{{ document.object.type }}</small> | ||||
|              | ||||
|  | ||||
|                 {% if document.description is not empty %} | ||||
|                     <blockquote class="chill-user-quote mt-2"> | ||||
|                         {{ document.description }} | ||||
|                     </blockquote> | ||||
|                 {% endif %} | ||||
|          | ||||
|  | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
| @@ -43,14 +42,15 @@ | ||||
|                 'changeClass'   string | ||||
|                 'noText'        boolean | ||||
|             #} | ||||
|             {# vue component #} | ||||
|             {# vue component | ||||
|             <span | ||||
|                 data-module="wopi-link" | ||||
|                 data-wopi-url="{{ path('chill_wopi_file_edit', {'fileId': document.object.uuid}) }}" | ||||
|                 data-doc-title="{{ document.title|e('html_attr') }}" | ||||
|                 data-doc-type="{{ document.object.type|e('html_attr') }}" | ||||
|                 data-button="{{ button|json_encode }}" | ||||
|             ></span> | ||||
|             ></span> #} | ||||
|             <a class="btn btn-update" href="{{ chill_path_add_return_path('chill_wopi_file_edit', {'fileId': document.object.uuid}) }}">{{ 'Edit'|trans }}</a> | ||||
|         {% else %} | ||||
|             <a class="btn btn-update change-icon disabled" href="#" title="{{ 'workflow.freezed document'|trans }}"> | ||||
|                 <i class="fa fa-lock me-2"></i>{{ 'Update document'|trans }} | ||||
| @@ -58,4 +58,4 @@ | ||||
|         {% endif %} | ||||
|         </li> | ||||
|     </ul> | ||||
| {% endif %} | ||||
| {% endif %} | ||||
|   | ||||
| @@ -47,7 +47,8 @@ export default { | ||||
|             console.log('goToGenerateWorkflow', event, workflowName); | ||||
|  | ||||
|             if (!this.$props.preventDefaultMoveToGenerate) { | ||||
|                 event.target.click(); | ||||
|                 console.log('to go generate'); | ||||
|                 window.location.assign(this.makeLink(workflowName)); | ||||
|             } | ||||
|  | ||||
|             this.$emit('goToGenerateWorkflow', {event, workflowName, link: this.makeLink(workflowName)}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user