Skip to content
Snippets Groups Projects
Verified Commit b7807cb3 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #9685 add view doc action

parent 63264bf2
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ An action page is described in a ACTIONPAGE tag :
<LABEL>_VIEW_DOC</LABEL>
<NAME>view</NAME>
<DESC>_VIEW_DOC_DESC</DESC>
<component>v1Action</component>
<component>viewDoc</component>
<ORIGIN>apps</ORIGIN>
<MODULE></MODULE>
<FLAG_CREATE>false</FLAG_CREATE>
......
......@@ -12,6 +12,7 @@ import { CloseMailActionComponent } from './close-mail-action/close-mail-action.
import { UpdateDepartureDateActionComponent } from './update-departure-date-action/update-departure-date-action.component';
import { ProcessActionComponent } from './process-action/process-action.component';
import { Router } from '@angular/router';
import { ViewDocActionComponent } from './view-doc-action/view-doc-action.component';
@Component({
selector: 'app-actions-list',
......@@ -221,6 +222,19 @@ export class ActionsListComponent implements OnInit {
});
}
viewDoc() {
this.dialog.open(ViewDocActionComponent, {
panelClass: 'no-padding-full-dialog',
data: {
contextMode: this.contextMode,
contextChrono: this.contextMenuTitle,
selectedRes: this.selectedRes,
action: this.currentAction,
currentBasketInfo: this.currentBasketInfo
}
});
}
// CALL GENERIC ACTION V1
v1Action() {
location.hash = "";
......
......@@ -30,6 +30,7 @@ import { ResMarkAsReadActionComponent } from './actions/res-mark-as-read/res-mar
import { CloseMailActionComponent } from './actions/close-mail-action/close-mail-action.component';
import { UpdateDepartureDateActionComponent } from './actions/update-departure-date-action/update-departure-date-action.component';
import { ProcessActionComponent } from './actions/process-action/process-action.component';
import { ViewDocActionComponent } from './actions/view-doc-action/view-doc-action.component';
import { FiltersListComponent } from './list/filters/filters-list.component';
import { FiltersToolComponent } from './list/filters/filters-tool.component';
......@@ -78,6 +79,7 @@ import { DiffusionsListComponent } from './diffusions/diffusions-lis
CloseMailActionComponent,
UpdateDepartureDateActionComponent,
ProcessActionComponent,
ViewDocActionComponent,
ActionsListComponent,
],
entryComponents: [
......@@ -96,6 +98,7 @@ import { DiffusionsListComponent } from './diffusions/diffusions-lis
CloseMailActionComponent,
UpdateDepartureDateActionComponent,
ProcessActionComponent,
ViewDocActionComponent
],
providers: [ ShortcutMenuService, HeaderService, FiltersListService ],
bootstrap: [ AppComponent ]
......
......@@ -399,4 +399,13 @@ h1.admin-app-name {
.mat-dialog-container,
.mat-tab-body-content {
height: auto !important;
}
.no-padding-full-dialog .mat-dialog-container {
margin: 0;
padding: 0;
position: relative;
height: 95vh !important;
width: 90vw !important;
overflow: hidden;
}
\ No newline at end of file
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