|
|
@@ -73,7 +73,7 @@ class ProsesSanksi extends Component {
|
|
|
|
|
|
|
|
|
handleAutoSave = async (data, activeStep) => {
|
|
|
- if (this.props?.user?.role.id === 2024) {
|
|
|
+ if (this.props?.user?.role.id === 2071) {
|
|
|
""
|
|
|
} else {
|
|
|
const { query, token } = this.props;
|
|
|
@@ -85,7 +85,7 @@ class ProsesSanksi extends Component {
|
|
|
}
|
|
|
|
|
|
done = async () => {
|
|
|
- if (this.props?.user?.role.id === 2024) {
|
|
|
+ if (this.props?.user?.role.id === 2071) {
|
|
|
Swal.fire({
|
|
|
icon: 'error',
|
|
|
title: 'Oops...',
|
|
|
@@ -212,7 +212,7 @@ class ProsesSanksi extends Component {
|
|
|
await createLog(token, { aktivitas: `Berhasil Delegasi Laporan, id: ${id}`, _csrf: _csrf, menu: "Sanksi" });
|
|
|
}
|
|
|
handleDelegasi = async (data) => {
|
|
|
- if (this.props?.user?.role.id === 2024) {
|
|
|
+ if (this.props?.user?.role.id === 2071) {
|
|
|
Swal.fire({
|
|
|
icon: 'error',
|
|
|
title: 'Oops...',
|
|
|
@@ -675,7 +675,7 @@ class ProsesSanksi extends Component {
|
|
|
<div style={{ display: "none" }}>
|
|
|
<ComponentToPrint ref={el => (this.componentRef = el)} query={this.props.query} handleAutoSave={this.handleAutoSave} dataPelanggaran={this.state.dataPelanggaran} setDataSuratBA={this.setDataSuratBA} dataLaporan={pelaporan} dataSuratBA={dataSuratBA} />
|
|
|
</div>
|
|
|
- {this.props?.user?.role.id === 2024 ?
|
|
|
+ {this.props?.user?.role.id === 2071 ?
|
|
|
<Button color className="btn-labeled-4 mt-0" onClick={this.handleOpenAlert}>
|
|
|
<h5 className="p-0 mt-2"><em className="fas fa-download mr-2" />Print dan Download</h5>
|
|
|
</Button>
|
|
|
@@ -713,7 +713,7 @@ class ProsesSanksi extends Component {
|
|
|
<FormGroup row>
|
|
|
<Col md="4">Surat Berita Acara:</Col>
|
|
|
<Col md="8">
|
|
|
- {this.props.user?.role?.id === 2024 ?
|
|
|
+ {this.props.user?.role?.id === 2071 ?
|
|
|
<Button color className="btn-labeled-4 mt-0" onClick={this.handleOpenAlert}>
|
|
|
<h5 className="p-0 mt-2"><em className="fas fa-download mr-2" />Print dan Download</h5>
|
|
|
</Button>
|