Skip to content
Snippets Groups Projects
Commit 14bac416 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FEAT #15550 TIME 3 disable currentPage + translations

parent 341824f6
No related branches found
No related tags found
No related merge requests found
...@@ -406,6 +406,16 @@ ...@@ -406,6 +406,16 @@
"certifiedDocument": "Certified document", "certifiedDocument": "Certified document",
"certifiedDocumentMsg": "The document was signed by digital certificate, you cannot affix a stamp.", "certifiedDocumentMsg": "The document was signed by digital certificate, you cannot affix a stamp.",
"errorUserSignType": "Signers without a certificate must be present before signers with a certificate.", "errorUserSignType": "Signers without a certificate must be present before signers with a certificate.",
"fortifyReadException": "Error when communicating with Fortify" "fortifyReadException": "Error when communicating with Fortify",
"docaposteSignatureDisabled": "The docaposteSignature parameter is not activated",
"certifiedDocumentMsg2": "Certified document! Annotations on the document will not be taken into account!",
"history": "History",
"manage_history": "Manage history",
"filters": "Filter (s)",
"currentFilters": "Active filter (s)",
"since": "Since",
"until": "Until",
"resource": "Resource",
"manage_historyAdmin": "Administer history"
} }
} }
\ No newline at end of file
...@@ -413,6 +413,7 @@ ...@@ -413,6 +413,7 @@
"currentFilters": "filtre(s) actif(s)", "currentFilters": "filtre(s) actif(s)",
"since": "Depuis", "since": "Depuis",
"until": "Jusqu'à", "until": "Jusqu'à",
"resource": "Ressource" "resource": "Ressource",
"manage_historyAdmin": "Administrer les historiques"
} }
} }
...@@ -111,9 +111,9 @@ ...@@ -111,9 +111,9 @@
<div class="page-info-doc"> <div class="page-info-doc">
{{docList[currentDoc].title}} {{docList[currentDoc].title}}
</div> </div>
<div class="page-info-page" (click)="openSelect()">{{'lang.page' | translate}} {{ pageNum }} / {{ totalPages }}</div> <div class="page-info-page" (click)="openSelect($event)">{{'lang.page' | translate}} {{ pageNum }} / {{ totalPages }}</div>
<ion-select [cancelText]="'lang.cancel' | translate" style="max-height: 30%;" interface="action-sheet" #pagesList (ionChange)='goTo($event.target.value)' hidden="true"> <ion-select interface="popover" [interfaceOptions]="{cssClass: 'popover-class'}" style="max-height: 100%;" #pagesList (ionChange)='goTo($event.target.value)' hidden="true">
<ion-select-option *ngFor="let page of pagesArray(this.totalPages);let i=index" [value]="page">{{ i + 1 }}</ion-select-option> <ion-select-option *ngFor="let page of pagesArray(this.totalPages);let i=index" [value]="page" [disabled]="i+1 === pageNum">{{ i + 1 }}</ion-select-option>
</ion-select> </ion-select>
</section> </section>
<ion-item *ngIf="mainDocument.isCertified" lines="none" class="certified"> <ion-item *ngIf="mainDocument.isCertified" lines="none" class="certified">
......
...@@ -394,4 +394,11 @@ button.disabled { ...@@ -394,4 +394,11 @@ button.disabled {
left: 10px; left: 10px;
border: solid 1px var(--ion-color-success); border: solid 1px var(--ion-color-success);
color: var(--ion-color-success); color: var(--ion-color-success);
} }
\ No newline at end of file
::ng-deep .popover-class {
.popover-content{
height: 50%;
top: 50px;
}
}
...@@ -563,7 +563,7 @@ export class DocumentComponent implements OnInit { ...@@ -563,7 +563,7 @@ export class DocumentComponent implements OnInit {
this.renderImage(); this.renderImage();
} }
goTo(page: number) { goTo(page: number) {
this.loadingController.create({ this.loadingController.create({
message: this.translate.instant('lang.loadingDocument'), message: this.translate.instant('lang.loadingDocument'),
spinner: 'dots', spinner: 'dots',
...@@ -810,9 +810,10 @@ export class DocumentComponent implements OnInit { ...@@ -810,9 +810,10 @@ export class DocumentComponent implements OnInit {
this.signaturesService.detachTemplate('rightContent'); this.signaturesService.detachTemplate('rightContent');
} }
openSelect() { openSelect(event: any) {
if (this.totalPages > 1) { if (this.totalPages > 1) {
this.pagesList.open(); this.pagesList.interface = 'popover';
this.pagesList.open(event);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment