Skip to content

Commit

Permalink
Merge pull request #600 from link-it/592-nascondere-la-voce-pagamenti…
Browse files Browse the repository at this point in the history
…-dal-menu-2

Issue #592
  • Loading branch information
nardil committed Aug 2, 2023
2 parents 410c31d + f3977a2 commit 7bd39cd
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ it.govpay.backoffice.gui.baseUrl=/govpay/backend/gui/backoffice/
it.govpay.backoffice.gui.apiBaseUrl=/govpay/backend/api/backoffice/rs/form/v1
it.govpay.backoffice.gui.transformerJS=
it.govpay.backoffice.gui.gestionepassword.enabled=true
it.govpay.backoffice.gui.sezionePagamenti.enabled=false

it.govpay.backoffice.gui.iam.enabled=false
it.govpay.backoffice.gui.iam.login=
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/filters/template.filter.properties
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ it.govpay.backoffice.gui.baseUrl=/govpay/backend/gui/backoffice/
it.govpay.backoffice.gui.apiBaseUrl=/govpay/backend/api/backoffice/rs/form/v1
it.govpay.backoffice.gui.transformerJS=
it.govpay.backoffice.gui.gestionepassword.enabled=true
it.govpay.backoffice.gui.sezionePagamenti.enabled=false

it.govpay.backoffice.gui.iam.enabled=false
it.govpay.backoffice.gui.iam.login=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ export class AppComponent implements OnInit, AfterContentChecked, IModalDialog,
break;
case 'Pagamenti':
UtilService.USER_ACL.hasPagamenti = true;
this._sideNavSetup.menu.push({ link: UtilService.URL_PAGAMENTI, name: UtilService.TXT_PAGAMENTI, xhttp: false, icon: false, sort: 1 });
if(UtilService.GESTIONE_PAGAMENTI.ENABLED){
this._sideNavSetup.menu.push({ link: UtilService.URL_PAGAMENTI, name: UtilService.TXT_PAGAMENTI, xhttp: false, icon: false, sort: 1 });
}
if(!UtilService.USER_ACL.hasPagamentiePendenze && acl.autorizzazioni.indexOf(UtilService._CODE.LETTURA) != -1 && acl.autorizzazioni.indexOf(UtilService._CODE.SCRITTURA) != -1) {
UtilService.USER_ACL.hasPagamentiePendenze = true;
this._sideNavSetup.terMenu.push({ link: UtilService.URL_TRACCIATI, name: UtilService.TXT_TRACCIATI, xhttp: false, icon: false, sort: 2 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class DashboardViewComponent implements OnInit, OnDestroy {
initDashboard() {
if(UtilService.PROFILO_UTENTE) {
this.hasAuthentication = true;
this.hasPagamenti = UtilService.USER_ACL.hasPagamenti;
this.hasPagamenti = UtilService.USER_ACL.hasPagamenti && UtilService.GESTIONE_PAGAMENTI.ENABLED;
if(this.hasPagamenti) {
this.initBadges();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export class UtilService {

// Config.govpay
public static GESTIONE_PASSWORD: any = GovPayConfig.GESTIONE_PASSWORD;

// Config.govpay
public static GESTIONE_PAGAMENTI: any = GovPayConfig.GESTIONE_PAGAMENTI;

// Config.govpay
public static PREFERENCES: any = GovPayConfig.PREFERENCES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@
MAX_EXPORT_LIMIT: 200, // Max page elements
MAX_THREAD_EXPORT_LIMIT: 5, // Max sincro calls
POLLING_TRACCIATI: 5000 // Timeout per tracciati NN(millisec)|false
},
GESTIONE_PAGAMENTI: {
ENABLED: true
}
};

Expand Down
3 changes: 3 additions & 0 deletions wars/web-console/src/main/webapp/assets/Config.govpay
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@
MAX_EXPORT_LIMIT: ${it.govpay.backoffice.gui.export.limit}, // Max page elements
MAX_THREAD_EXPORT_LIMIT: ${it.govpay.backoffice.gui.export.thread}, // Max sincro calls
POLLING_TRACCIATI: ${it.govpay.backoffice.gui.export.polling} // Timeout per tracciati NN(millisec)|false
},
GESTIONE_PAGAMENTI: {
ENABLED: ${it.govpay.backoffice.gui.sezionePagamenti.enabled}
}
};

Expand Down

0 comments on commit 7bd39cd

Please sign in to comment.