49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Vue
		
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Vue
		
	
	
	
| <script>
 | |
| import { GlAlert, GlSprintf } from '@gitlab/ui';
 | |
| import { __ } from '~/locale';
 | |
| import SharedDeleteButton from './shared/delete_button.vue';
 | |
| 
 | |
| export default {
 | |
|   components: {
 | |
|     GlSprintf,
 | |
|     GlAlert,
 | |
|     SharedDeleteButton,
 | |
|   },
 | |
|   props: {
 | |
|     confirmPhrase: {
 | |
|       type: String,
 | |
|       required: true,
 | |
|     },
 | |
|     formPath: {
 | |
|       type: String,
 | |
|       required: true,
 | |
|     },
 | |
|   },
 | |
|   strings: {
 | |
|     alertTitle: __('You are about to permanently delete this project'),
 | |
|     alertBody: __(
 | |
|       'Once a project is permanently deleted, it %{strongStart}cannot be recovered%{strongEnd}. Permanently deleting this project will %{strongStart}immediately delete%{strongEnd} its repositories and %{strongStart}all related resources%{strongEnd}, including issues, merge requests etc.',
 | |
|     ),
 | |
|   },
 | |
| };
 | |
| </script>
 | |
| 
 | |
| <template>
 | |
|   <shared-delete-button v-bind="{ confirmPhrase, formPath }">
 | |
|     <template #modal-body>
 | |
|       <gl-alert
 | |
|         class="gl-mb-5"
 | |
|         variant="danger"
 | |
|         :title="$options.strings.alertTitle"
 | |
|         :dismissible="false"
 | |
|       >
 | |
|         <gl-sprintf :message="$options.strings.alertBody">
 | |
|           <template #strong="{ content }">
 | |
|             <strong>{{ content }}</strong>
 | |
|           </template>
 | |
|         </gl-sprintf>
 | |
|       </gl-alert>
 | |
|     </template>
 | |
|   </shared-delete-button>
 | |
| </template>
 |