| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | <?php do_action( 'learn_press_before_display_item_actions' ); ?> |
| 24 | 24 | <div class="action preview-item lp-title-attr-tip" data-content-tip="<?php esc_attr_e( 'Enable/Disable Preview', 'learnpress' ); ?>"> |
| 25 | 25 | <a class="lp-btn-icon dashicons" :class="previewClass" @click="togglePreview"></a> |
| 26 | 26 | </div> |
| 27 | - <div class="action edit-item lp-title-attr-tip" data-content-tip="<?php esc_attr_e( 'Edit item', 'learnpress' ); ?>"> | |
| 27 | + <div class="action edit-item lp-title-attr-tip" data-content-tip="<?php esc_attr_e( 'Edit an item', 'learnpress' ); ?>"> | |
| 28 | 28 | <a :href="url" target="_blank" class="lp-btn-icon dashicons dashicons-edit"></a> |
| 29 | 29 | </div> |
| 30 | 30 | <div class="action delete-item" v-if="!disableCurriculum"> |
| 31 | 31 | <a class="lp-btn-icon dashicons dashicons-trash" @click.prevent="remove"></a> |
| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | <div class="action delete-item" v-if="!disableCurriculum"> |
| 31 | 31 | <a class="lp-btn-icon dashicons dashicons-trash" @click.prevent="remove"></a> |
| 32 | 32 | <ul> |
| 33 | 33 | <li> |
| 34 | - <a @click.prevent="remove"><?php esc_html_e( 'Remove from course', 'learnpress' ); ?></a> | |
| 34 | + <a @click.prevent="remove"><?php esc_html_e( 'Remove from the course', 'learnpress' ); ?></a> | |
| 35 | 35 | </li> |
| 36 | 36 | <li> |
| 37 | 37 | <a @click.prevent="deletePermanently" class="delete-permanently"><?php esc_html_e( 'Move to trash', 'learnpress' ); ?></a> |
| 38 | 38 | </li> |
| @@ -106,8 +106,11 @@ | ||
| 106 | 106 | this.changed = false; |
| 107 | 107 | } |
| 108 | 108 | }, |
| 109 | 109 | remove: function() { |
| 110 | + if ( ! confirm( $store.getters['i18n/all'].confirm_remove_item.replace( '{{ITEM_NAME}}', this.item.title ) ) ) { | |
| 111 | + return; | |
| 112 | + } | |
| 110 | 113 | this.item.temp_id = LP.uniqueId(); |
| 111 | 114 | this.$emit( 'remove', this.item ); |
| 112 | 115 | }, |
| 113 | 116 | deletePermanently: function() { |