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

FEAT #15550 TIME 0:03 select + disable current page & translate language variables

parent 6d17bc91
No related branches found
No related tags found
No related merge requests found
......@@ -416,6 +416,9 @@
"since": "Since",
"until": "Until",
"resource": "Resource",
"manage_historyAdmin": "Administer history"
"manage_historyAdmin": "Administer history",
"manage_historyDesc": "Consult the various events of the application",
"loadingValidation": "Validation of the current document ...",
"workflowTemplateAdded": "Workflow template added"
}
}
\ No newline at end of file
......@@ -416,6 +416,7 @@
"resource": "Ressource",
"manage_historyAdmin": "Consulter l'historique",
"manage_historyDesc": "Consulter les différents événements de l'application",
"loadingValidation": "Validation du document en cours ..."
"loadingValidation": "Validation du document en cours ...",
"workflowTemplateAdded": "Modèle de circuit ajouté"
}
}
......@@ -112,8 +112,8 @@
{{docList[currentDoc].title}}
</div>
<div class="page-info-page" (click)="openSelect($event)">{{'lang.page' | translate}} {{ pageNum }} / {{ totalPages }}</div>
<ion-select interface="popover" [interfaceOptions]="{cssClass : this.totalPages > 10 ? 'popover-class' : 'custom-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" [disabled]="i+1 === pageNum">{{ i + 1 }}</ion-select-option>
<ion-select interface="popover" [(ngModel)]="pageNum" [interfaceOptions]="{cssClass : this.totalPages > 10 ? 'popover-class' : 'custom-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]="i+1" [disabled]="i+1 === pageNum">{{ i + 1 }}</ion-select-option>
</ion-select>
</section>
<ion-item *ngIf="mainDocument.isCertified" lines="none" class="certified">
......
......@@ -518,13 +518,6 @@ export class DocumentComponent implements OnInit {
}
prevPage() {
this.loadingController.create({
message: this.translate.instant('lang.loadingDocument'),
spinner: 'dots'
}).then((load: HTMLIonLoadingElement) => {
this.load = load;
this.load.present();
});
this.loadingImage = true;
this.pageNum--;
......@@ -541,13 +534,6 @@ export class DocumentComponent implements OnInit {
}
nextPage() {
this.loadingController.create({
message: this.translate.instant('lang.loadingDocument'),
spinner: 'dots'
}).then((load: HTMLIonLoadingElement) => {
this.load = load;
this.load.present();
});
this.loadingImage = true;
if (this.pageNum >= this.totalPages) {
this.pageNum = this.totalPages;
......@@ -579,6 +565,7 @@ export class DocumentComponent implements OnInit {
}
// this.exportAsImage();
this.renderImage();
this.load.dismiss();
}
pagesArray(n: number): number[] {
......@@ -820,7 +807,7 @@ export class DocumentComponent implements OnInit {
openSelect(event: any) {
if (this.totalPages > 1) {
this.pagesList.interface = 'popover';
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