Code cleanup and minor ui fixes
This commit is contained in:
parent
ba9d58c01d
commit
aaa8c79df4
2
amd/build/report-viewer-components.min.js
vendored
2
amd/build/report-viewer-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
amd/build/studyplan-editor-components.min.js
vendored
2
amd/build/studyplan-editor-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
amd/build/treestudyplan-components.min.js
vendored
2
amd/build/treestudyplan-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
11912
amd/build/vue/vue.min.js
vendored
11912
amd/build/vue/vue.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2919,7 +2919,7 @@ export default {
|
||||||
><i class='fa fa-asterisk' ></i
|
><i class='fa fa-asterisk' ></i
|
||||||
></abbr>
|
></abbr>
|
||||||
</td>
|
</td>
|
||||||
<td><r-completion-bar v-model="c.completionstats" :width="150" :height="15"></td>
|
<td><r-completion-bar v-model="c.completionstats" :width="150" :height="15"></r-completion-bar></td>
|
||||||
<td v-if="c.feedback">
|
<td v-if="c.feedback">
|
||||||
<a v-b-modal="'r-competency-feedback-'+c.id"
|
<a v-b-modal="'r-competency-feedback-'+c.id"
|
||||||
href="#"
|
href="#"
|
||||||
|
|
|
@ -1044,9 +1044,7 @@ export default {
|
||||||
coachDisassociate() {
|
coachDisassociate() {
|
||||||
if (premiumenabled()) {
|
if (premiumenabled()) {
|
||||||
const self = this;
|
const self = this;
|
||||||
const associated = self.association.coaches;
|
|
||||||
const associatedselected = self.selected.associated.coaches;
|
const associatedselected = self.selected.associated.coaches;
|
||||||
const search = self.search.coaches;
|
|
||||||
for (const i in associatedselected) {
|
for (const i in associatedselected) {
|
||||||
const r = associatedselected[i];
|
const r = associatedselected[i];
|
||||||
|
|
||||||
|
@ -1056,10 +1054,7 @@ export default {
|
||||||
'studyplan_id': self.value.id,
|
'studyplan_id': self.value.id,
|
||||||
'user_id': r,
|
'user_id': r,
|
||||||
}
|
}
|
||||||
}])[0].then((response) => {
|
}])[0].then(() => {
|
||||||
if (response.success) {
|
|
||||||
transportItem(search, associated, r);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}).catch(notification.exception);
|
}).catch(notification.exception);
|
||||||
}
|
}
|
||||||
|
|
|
@ -435,7 +435,10 @@ export default {
|
||||||
<span v-else-if='field.type == "checkbox"'
|
<span v-else-if='field.type == "checkbox"'
|
||||||
:class="'value ' + (field.checked?'true':'false')">{{ field.value }}</span>
|
:class="'value ' + (field.checked?'true':'false')">{{ field.value }}</span>
|
||||||
<span v-else-if='field.type == "textarea"'>
|
<span v-else-if='field.type == "textarea"'>
|
||||||
<a class='text-info' href='#' v-b-modal="field.courseid+'_'+field.fieldname">{{text.show}}...</a>
|
<a class='text-info'
|
||||||
|
@click.prevent.stop=""
|
||||||
|
href='#'
|
||||||
|
v-b-modal="field.courseid+'_'+field.fieldname">{{text.show}}...</a>
|
||||||
<b-modal
|
<b-modal
|
||||||
:id="field.courseid+'_'+field.fieldname"
|
:id="field.courseid+'_'+field.fieldname"
|
||||||
:title="field.title""
|
:title="field.title""
|
||||||
|
|
11905
amd/src/vue/vue.js
11905
amd/src/vue/vue.js
File diff suppressed because one or more lines are too long
|
@ -121,7 +121,7 @@ class gradeinfo {
|
||||||
protected static function get_contentitems(): array {
|
protected static function get_contentitems(): array {
|
||||||
global $PAGE;
|
global $PAGE;
|
||||||
if (empty(static::$contentitems)) {
|
if (empty(static::$contentitems)) {
|
||||||
if(empty($PAGE->context)) {
|
if (empty($PAGE->context)) {
|
||||||
$PAGE->set_context(\context_system::instance());
|
$PAGE->set_context(\context_system::instance());
|
||||||
}
|
}
|
||||||
static::$contentitems = (new content_item_readonly_repository())->find_all();
|
static::$contentitems = (new content_item_readonly_repository())->find_all();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user