mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
Popup for Status Confirm
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {CoreFilterCmpt} from "../../../../filter/Filter.js";
|
||||
import BsModal from "../../../../Bootstrap/Modal.js";
|
||||
import BsConfirm from "../../../../Bootstrap/Confirm.js";
|
||||
import FormInput from '../../../../Form/Input.js';
|
||||
import StatusModal from '../Status/Modal.js';
|
||||
|
||||
@@ -407,17 +408,19 @@ export default{
|
||||
this.advanceStatus(this.statusId);
|
||||
});
|
||||
},
|
||||
actionConfirmStatus(status, stdsem, ausbildungssemester){
|
||||
this.statusId = {
|
||||
'prestudent_id': this.modelValue.prestudent_id,
|
||||
'status_kurzbz': status,
|
||||
'studiensemester_kurzbz': stdsem,
|
||||
'ausbildungssemester': ausbildungssemester
|
||||
};
|
||||
this.loadStatus(this.statusId).then(() => {
|
||||
if(this.statusData)
|
||||
this.confirmStatus(this.statusId);
|
||||
});
|
||||
actionConfirmStatus(status, stdsem, ausbildungssemester) {
|
||||
BsConfirm
|
||||
.popup(this.$p.t('stv', 'status_confirm_popup'))
|
||||
.then(() => this.$fhcApi.post(
|
||||
'api/frontend/v1/stv/status/confirmStatus/' +
|
||||
this.modelValue.prestudent_id + '/' +
|
||||
status + '/' +
|
||||
stdsem + '/' +
|
||||
ausbildungssemester
|
||||
))
|
||||
.then(() => this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successConfirm')))
|
||||
.then(this.reload)
|
||||
.catch(this.$fhcAlert.handleSystemError);
|
||||
},
|
||||
actionConfirmDialogue(data, statusgrund, statusText){
|
||||
this.actionButton = statusgrund;
|
||||
@@ -750,21 +753,6 @@ export default{
|
||||
this.reload();
|
||||
});
|
||||
},
|
||||
confirmStatus(statusId){
|
||||
return this.$fhcApi.post('api/frontend/v1/stv/status/confirmStatus/' +
|
||||
this.statusId.prestudent_id + '/' +
|
||||
this.statusId.status_kurzbz + '/' +
|
||||
this.statusId.studiensemester_kurzbz + '/' +
|
||||
this.statusId.ausbildungssemester)
|
||||
.then(
|
||||
result => {
|
||||
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successConfirm'));
|
||||
})
|
||||
.catch(this.$fhcAlert.handleSystemError)
|
||||
.finally(() => {
|
||||
this.reload();
|
||||
});
|
||||
},
|
||||
deleteStatus(status_id){
|
||||
return this.$fhcApi.post('api/frontend/v1/stv/status/deleteStatus/',
|
||||
status_id)
|
||||
|
||||
@@ -29402,6 +29402,27 @@ array(
|
||||
)
|
||||
)
|
||||
),
|
||||
// status
|
||||
array(
|
||||
'app' => 'core',
|
||||
'category' => 'stv',
|
||||
'phrase' => 'status_confirm_popup',
|
||||
'insertvon' => 'system',
|
||||
'phrases' => array(
|
||||
array(
|
||||
'sprache' => 'German',
|
||||
'text' => 'Diesen Status bestaetigen?',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
),
|
||||
array(
|
||||
'sprache' => 'English',
|
||||
'text' => 'Confirm this status?',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
//**************************** FHC-Core-SAP
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user