mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Merge pull request #4990 from artoscinote/ma_SCI_7952
Add delete confirmation modal to checklist items [SCI-7952]
This commit is contained in:
commit
63eff83ae6
1 changed files with 4 additions and 2 deletions
|
@ -42,21 +42,23 @@
|
|||
<button v-if="!checklistItem.attributes.urls || updateUrl" class="btn icon-btn btn-light" @click="enableTextEdit" tabindex="0">
|
||||
<i class="fas fa-pen"></i>
|
||||
</button>
|
||||
<button v-if="!checklistItem.attributes.urls || deleteUrl" class="btn icon-btn btn-light" @click="deleteElement" tabindex="0">
|
||||
<button v-if="!checklistItem.attributes.urls || deleteUrl" class="btn icon-btn btn-light" @click="showDeleteModal" tabindex="0">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<deleteElementModal v-if="confirmingDelete" @confirm="deleteElement" @cancel="closeDeleteModal"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DeleteMixin from 'vue/protocol/mixins/components/delete.js'
|
||||
import InlineEdit from 'vue/shared/inline_edit.vue'
|
||||
import deleteElementModal from 'vue/protocol/modals/delete_element.vue'
|
||||
|
||||
export default {
|
||||
name: 'ChecklistItem',
|
||||
components: { InlineEdit },
|
||||
components: { InlineEdit, deleteElementModal },
|
||||
mixins: [DeleteMixin],
|
||||
props: {
|
||||
checklistItem: {
|
||||
|
|
Loading…
Reference in a new issue