Merge pull request #7141 from lasniscinote/gl_SCI_10220

(fix) Add shortcut to add new step (+) after the last step [SCI-10220]
This commit is contained in:
ajugo 2024-02-26 17:03:07 +01:00 committed by GitHub
commit 512bf155c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -185,6 +185,9 @@
:reorderStepUrl="steps.length > 1 ? urls.reorder_steps_url : null"
:assignableMyModuleId="protocol.attributes.assignable_my_module_id"
/>
<div v-if="(index === steps.length - 1) && urls.add_step_url" class="insert-step" @click="addStep(index + 1)">
<i class="sn-icon sn-icon-new-task"></i>
</div>
</div>
<div v-if="steps.length > 0 && urls.add_step_url && inRepository" class="py-5">
<a