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
|
* T-STUDYPLAN
|
||||||
*/
|
*/
|
||||||
Vue.component('t-studyplan', {
|
Vue.component('t-studyplan', {
|
||||||
props: ['value', 'index', ],
|
props: [ 'value', 'index', ],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config: {
|
config: {
|
||||||
|
|
|
@ -97,20 +97,20 @@ print $OUTPUT->header();
|
||||||
<div class="m-buttonbar" style="margin-bottom: 1em;">
|
<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>
|
<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>
|
<span v-if='activestudyplan'><?php t("studyplan_select"); ?></span>
|
||||||
<b-form-select v-if='activestudyplan' lazy :text='dropdown_title'>
|
<b-form-select v-if='activestudyplan' lazy :text='dropdown_title' v-model='activestudyplan.id'>
|
||||||
<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-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>
|
</b-form-select>
|
||||||
<t-studyplan-edit
|
<t-studyplan-edit
|
||||||
@creating=""
|
@creating=""
|
||||||
@created="onStudyPlanCreated"
|
@created="onStudyPlanCreated"
|
||||||
v-if='!activestudyplan'
|
v-if='!activestudyplan && !loadingstudyplan'
|
||||||
mode="create"
|
mode="create"
|
||||||
v-model="create.studyplan"
|
v-model="create.studyplan"
|
||||||
type="button"
|
type="button"
|
||||||
variant="primary"
|
variant="primary"
|
||||||
:contextid='contextid'
|
:contextid='contextid'
|
||||||
><i class='fa fa-plus'></i> <?php t("studyplan_add");?></t-studyplan-edit>
|
><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>
|
<b-button v-if='activestudyplan' variant='primary' v-b-toggle.toolbox-sidebar><?php t('opentoolbox') ?></b-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue