Skip to content

Commit 2ae2d04

Browse files
authored
Merge pull request #3387 from ProgrammeVitam/cp-8.1-15307-remove-ng2-file-upload
CP V8.1 - Story #15307: Clean code - remove unused ng2-file-upload
2 parents a8e4974 + 0948629 commit 2ae2d04

File tree

12 files changed

+1
-320
lines changed

12 files changed

+1
-320
lines changed

ui/ui-frontend/package-lock.json

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/ui-frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
"lodash-es": "^4.17.21",
114114
"material-design-icons-iconfont": "^6.7.0",
115115
"moment": "^2.30.1",
116-
"ng2-file-upload": "^8.0.0",
117116
"ngx-color-picker": "^17.0.0",
118117
"ngx-filesize": "^3.0.5",
119118
"ngx-quicklink": "0.4.7",

ui/ui-frontend/projects/pastis/src/app/app.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
display: flex;
99
font-size: 15px;
1010
font-family: Mulish;
11+
z-index: 2; // To have header over sidenav in pastis standalone
1112
}
1213
.separator {
1314
margin-top: 100px;

ui/ui-frontend/projects/pastis/src/app/profile/list-profile/list-profile.component.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ <h5>{{ 'APPLICATION.PASTIS_APP.TITLE' | translate }}</h5>
3232
<input
3333
#fileInput
3434
(change)="uploadProfile($event.target.files)"
35-
[uploader]="uploader"
3635
accept=".json, .rng"
3736
class="buttons"
38-
ng2FileSelect
3937
style="display: none"
4038
type="file"
4139
/>

ui/ui-frontend/projects/pastis/src/app/profile/profile.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ import { MatTabsModule } from '@angular/material/tabs';
8383
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8484
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
8585
import { TranslateModule } from '@ngx-translate/core';
86-
import { FileUploadModule } from 'ng2-file-upload';
8786
import { VitamUICommonModule, VitamUILibraryModule } from 'vitamui-library';
8887
import { PastisMaterialModule } from '../material.module';
8988
import { UserActionsModule } from '../user-actions/user-actions.module';
@@ -99,7 +98,6 @@ import { ProfilePreviewModule } from './profile-preview/profile-preview.module';
9998
CommonModule,
10099
CoreModule,
101100
FileTreeModule,
102-
FileUploadModule,
103101
FormsModule,
104102
MatIconModule,
105103
MatSlideToggleModule,

ui/ui-frontend/projects/pastis/src/app/shared/pastis-popup-option/pastis-popup-option.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
(change)="uploadProfile($event.target.files)"
1515
accept=".json, .rng"
1616
class="buttons"
17-
ng2FileSelect
1817
style="display: none"
1918
type="file"
2019
/>

ui/ui-frontend/projects/pastis/src/app/shared/pastis-popup-option/pastis-popup-option.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import { Component, Input, OnDestroy, OnInit } from '@angular/core';
3838
import { MatDialog } from '@angular/material/dialog';
3939
import { ActivatedRoute, Router } from '@angular/router';
4040
import { LangChangeEvent, TranslateService } from '@ngx-translate/core';
41-
import { FileUploader } from 'ng2-file-upload';
4241
import { NgxUiLoaderService } from 'ngx-ui-loader';
4342
import { environment } from 'projects/pastis/src/environments/environment';
4443
import { Subscription } from 'rxjs';
@@ -108,8 +107,6 @@ export class PastisPopupOptionComponent implements OnInit, OnDestroy {
108107
sedaUrl: string;
109108
@Input()
110109
newProfileUrl: string;
111-
@Input()
112-
uploader: FileUploader = new FileUploader({ url: '' });
113110

114111
expanded = false;
115112

ui/ui-frontend/projects/pastis/src/app/user-actions/upload-profile/upload-profile.component.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

ui/ui-frontend/projects/pastis/src/app/user-actions/upload-profile/upload-profile.component.scss

Lines changed: 0 additions & 30 deletions
This file was deleted.

ui/ui-frontend/projects/pastis/src/app/user-actions/upload-profile/upload-profile.component.spec.ts

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)