mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
add toasts if no taken selections for Notenspiegel, LVplanung and Studienverlauf
This commit is contained in:
@@ -478,6 +478,12 @@ export default {
|
|||||||
},
|
},
|
||||||
showAlertNoSelectedStudent(){
|
showAlertNoSelectedStudent(){
|
||||||
this.$fhcAlert.alertError(this.$p.t('ui', 'alert_chooseStudent'));
|
this.$fhcAlert.alertError(this.$p.t('ui', 'alert_chooseStudent'));
|
||||||
|
},
|
||||||
|
showAlertMultipleStudents() {
|
||||||
|
this.$fhcAlert.alertError(this.$p.t('ui', 'alert_chooseOnlyOneStudent'));
|
||||||
|
},
|
||||||
|
showAlertNoGroupChosen(){
|
||||||
|
this.$fhcAlert.alertError(this.$p.t('ui', 'alert_chooseGroupSem'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -653,19 +659,26 @@ export default {
|
|||||||
</div>
|
</div>
|
||||||
<div class="offcanvas-body">
|
<div class="offcanvas-body">
|
||||||
<app-menu app-identifier="stv">
|
<app-menu app-identifier="stv">
|
||||||
<li class="dropend">
|
<li :class="{ dropend: appMenuExtraItems.length }">
|
||||||
<a
|
<a
|
||||||
|
v-if="appMenuExtraItems.length"
|
||||||
class="dropdown-toggle"
|
class="dropdown-toggle"
|
||||||
href="#"
|
href="#"
|
||||||
role="button"
|
role="button"
|
||||||
data-bs-toggle="dropdown"
|
data-bs-toggle="dropdown"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
:class="{ disabled: !appMenuExtraItems.length }"
|
|
||||||
data-bs-popper-config='{"strategy":"fixed"}'
|
data-bs-popper-config='{"strategy":"fixed"}'
|
||||||
>
|
>
|
||||||
{{ $p.t('stv/grade_report') }}
|
{{ $p.t('stv/grade_report') }}
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu p-0">
|
<a
|
||||||
|
v-else
|
||||||
|
href="#"
|
||||||
|
@click.prevent="showAlertNoGroupChosen"
|
||||||
|
>
|
||||||
|
{{ $p.t('stv/grade_report') }}
|
||||||
|
</a>
|
||||||
|
<ul v-if="appMenuExtraItems.length" class="dropdown-menu p-0">
|
||||||
<li
|
<li
|
||||||
v-for="(item, key) in appMenuExtraItems"
|
v-for="(item, key) in appMenuExtraItems"
|
||||||
:key="key"
|
:key="key"
|
||||||
@@ -676,19 +689,26 @@ export default {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="dropend">
|
<li :class="{ dropend: appMenuExtraItems.length }">
|
||||||
<a
|
<a
|
||||||
|
v-if="appMenuExtraItems.length"
|
||||||
class="dropdown-toggle"
|
class="dropdown-toggle"
|
||||||
href="#"
|
href="#"
|
||||||
role="button"
|
role="button"
|
||||||
data-bs-toggle="dropdown"
|
data-bs-toggle="dropdown"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
:class="{ disabled: !appMenuExtraItems.length }"
|
|
||||||
data-bs-popper-config='{"strategy":"fixed"}'
|
data-bs-popper-config='{"strategy":"fixed"}'
|
||||||
|
>
|
||||||
|
{{ $p.t('stv/lvplanung') }}
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
v-else
|
||||||
|
href="#"
|
||||||
|
@click.prevent="showAlertNoGroupChosen"
|
||||||
>
|
>
|
||||||
{{ $p.t('stv/lvplanung') }}
|
{{ $p.t('stv/lvplanung') }}
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu p-0">
|
<ul v-if="appMenuExtraItems.length" class="dropdown-menu p-0">
|
||||||
<li
|
<li
|
||||||
v-for="(item, key) in appMenuLvPlanungItems"
|
v-for="(item, key) in appMenuLvPlanungItems"
|
||||||
:key="key"
|
:key="key"
|
||||||
@@ -705,10 +725,13 @@ export default {
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a v-if="selected_uid" :href="linkGradeList" target="_blank">
|
<a v-if="selected.length === 1" :href="linkGradeList" target="_blank">
|
||||||
{{ $p.t('stv/studienverlauf') }}
|
{{ $p.t('stv/studienverlauf') }}
|
||||||
</a>
|
</a>
|
||||||
<a v-else href="#" @click.prevent="showAlertNoSelectedStudent">
|
<a v-else-if="selected.length === 0" href="#" @click.prevent="showAlertNoSelectedStudent">
|
||||||
|
{{ $p.t('stv/studienverlauf') }}
|
||||||
|
</a>
|
||||||
|
<a v-else href="#" @click.prevent="showAlertMultipleStudents">
|
||||||
{{ $p.t('stv/studienverlauf') }}
|
{{ $p.t('stv/studienverlauf') }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -58377,6 +58377,46 @@ I have been informed that I am under no obligation to consent to the transmissio
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'app' => 'core',
|
||||||
|
'category' => 'ui',
|
||||||
|
'phrase' => 'alert_chooseOnlyOneStudent',
|
||||||
|
'insertvon' => 'system',
|
||||||
|
'phrases' => array(
|
||||||
|
array(
|
||||||
|
'sprache' => 'German',
|
||||||
|
'text' => 'Bitte nur eine/n Studierende/n markieren!',
|
||||||
|
'description' => '',
|
||||||
|
'insertvon' => 'system'
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'sprache' => 'English',
|
||||||
|
'text' => 'Please select only one student!',
|
||||||
|
'description' => '',
|
||||||
|
'insertvon' => 'system'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'app' => 'core',
|
||||||
|
'category' => 'ui',
|
||||||
|
'phrase' => 'alert_chooseGroupSem',
|
||||||
|
'insertvon' => 'system',
|
||||||
|
'phrases' => array(
|
||||||
|
array(
|
||||||
|
'sprache' => 'German',
|
||||||
|
'text' => 'Bitte eine Gruppe auswählen!',
|
||||||
|
'description' => '',
|
||||||
|
'insertvon' => 'system'
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'sprache' => 'English',
|
||||||
|
'text' => 'Please select a group!',
|
||||||
|
'description' => '',
|
||||||
|
'insertvon' => 'system'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user