Minor bugfix
This commit is contained in:
		
							parent
							
								
									09605834ae
								
							
						
					
					
						commit
						8179b49bf9
					
				
					 3 changed files with 6 additions and 6 deletions
				
			
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
				
			
			@ -1234,7 +1234,7 @@ export default {
 | 
			
		|||
        * T-STUDYPLAN
 | 
			
		||||
        */
 | 
			
		||||
        Vue.component('t-studyplan', {
 | 
			
		||||
            props: ['value', 'index', ],
 | 
			
		||||
            props: [ 'value', 'index', ],
 | 
			
		||||
            data() {
 | 
			
		||||
                return {
 | 
			
		||||
                    config: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -97,20 +97,20 @@ print $OUTPUT->header();
 | 
			
		|||
		<div class="m-buttonbar" style="margin-bottom: 1em;">
 | 
			
		||||
			<a href='#' v-if='activestudyplan' @click.prevent='closeStudyplan'><i style='font-size: 150%;' class='fa fa-chevron-left'></i> <?php t('back');?></a>
 | 
			
		||||
			<span v-if='activestudyplan'><?php t("studyplan_select"); ?></span> 
 | 
			
		||||
			<b-form-select v-if='activestudyplan' lazy :text='dropdown_title'>
 | 
			
		||||
				<b-form-select-option v-for='(studyplan,planindex) in studyplans' :key='studyplan.id' @click='selectStudyplan(studyplan)'>{{ studyplan.name }}</b-form-select-option>
 | 
			
		||||
			<b-form-select v-if='activestudyplan' lazy :text='dropdown_title' v-model='activestudyplan.id'>
 | 
			
		||||
				<b-form-select-option v-for='(studyplan,planindex) in studyplans' :value="studyplan.id" :key='studyplan.id' @click='selectStudyplan(studyplan)'>{{ studyplan.name }}</b-form-select-option>
 | 
			
		||||
			</b-form-select> 
 | 
			
		||||
			<t-studyplan-edit
 | 
			
		||||
				@creating=""
 | 
			
		||||
				@created="onStudyPlanCreated"
 | 
			
		||||
				v-if='!activestudyplan'
 | 
			
		||||
				v-if='!activestudyplan && !loadingstudyplan'
 | 
			
		||||
				mode="create"
 | 
			
		||||
				v-model="create.studyplan"
 | 
			
		||||
				type="button"
 | 
			
		||||
				variant="primary"
 | 
			
		||||
				:contextid='contextid'
 | 
			
		||||
			><i class='fa fa-plus'></i> <?php t("studyplan_add");?></t-studyplan-edit>
 | 
			
		||||
			<b-button v-if='!activestudyplan' variant='danger' href='#' role='presentation' @click="import_studyplan "><i class='fa fa-upload'></i> <?php t("advanced_import_from_file");?></b-button>
 | 
			
		||||
			<b-button v-if='!activestudyplan && !loadingstudyplan' variant='danger' href='#' role='presentation' @click="import_studyplan "><i class='fa fa-upload'></i> <?php t("advanced_import_from_file");?></b-button>
 | 
			
		||||
			<b-button v-if='activestudyplan' variant='primary' v-b-toggle.toolbox-sidebar><?php t('opentoolbox') ?></b-button>
 | 
			
		||||
		</div>		
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue