8000 feat(ui): remove Workflow migration progress (#3211) · ovh/cds@b23f879 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit b23f879

Browse files
yesnaultbnjjj
authored andcommitted
feat(ui): remove Workflow migration progress (#3211)
It wasn't well computed and unuseful now Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
1 parent e51951b commit b23f879

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

ui/src/app/views/project/show/admin/project.admin.component.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export class ProjectAdminComponent implements OnInit {
3939

4040
loading = false;
4141
fileTooLarge = false;
42-
migrationValue = 0;
4342
user: User;
4443

4544
constructor(private _projectStore: ProjectStore, private _toast: ToastService,
@@ -49,15 +48,6 @@ export class ProjectAdminComponent implements OnInit {
4948
if (this.project.permission !== 7) {
5049
this._router.navigate(['/project', this.project.key], { queryParams: { tab: 'applications' }});
5150
}
52-
if (this.project.applications) {
53-
this.project.applications.forEach(app => {
54-
if (app.workflow_migration === 'STARTED') {
55-
this.migrationValue += 0.5;
56-
} else if (app.workflow_migration === 'DONE' || app.workflow_migration === 'CLEANING') {
57-
this.migrationValue++;
58-
}
59-
});
60-
}
6151
this.user = this._authStore.getUser();
6252
}
6353

ui/src/app/views/project/show/admin/project.admin.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
<div id="projectAdmin">
2-
<app-zone header="{{ 'project_workflow_migration_title' | translate }}" *ngIf="user.admin || project.workflow_migration !== 'NOT_BEGUN'">
3-
<app-zone-content class="bottom">
4-
<sui-progress class="indicating" [value]="migrationValue" [showProgress]="true" [maximum]="project.application_names?.length" [precision]="0" *ngIf="project.workflow_migration === 'STARTED'">
5-
</sui-progress>
6-
<i class="green check icon" *ngIf="project.workflow_migration === 'DONE' || project.workflow_migration === 'CLEANING'"></i>
7-
</app-zone-content>
8-
</app-zone>
92
<app-zone header="{{ 'project_rename_title' | translate }}">
103
<app-zone-content class="bottom">
114
<form class="ui form" (ngSubmit)="onSubmitProjectUpdate()" #projectUpdateFrom="ngForm">

ui/src/assets/i18n/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@
546546
"project_env_permission_form_title": "Add permissions on environments",
547547
&quo 9E8E t;project_key": "Project unique key",
548548
"project_key_error": "Project unique key is mandatory and must be in upper case",
549-
"project_workflow_migration_title": "Workflow migration progress",
550549
"project_name": "Project name",
551550
"project_name_error": "project name is mandatory",
552551
"project_no": "There is no project",

ui/src/assets/i18n/fr.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@
546546
"project_env_permission_form_title": "Ajouter des permissions sur des environnements",
547547
"project_key": "Identifiant du projet",
548548
"project_key_error": "L'identifiant est obligatoire et doit etre en majuscule",
549-
"project_workflow_migration_title": "Avancement de la migration vers les workflows",
550549
"project_name": "Nom du projet",
551550
"project_name_error": "Le nom du projet est obligatoire",
552551
"project_no": "Il n'y a aucun projet",

0 commit comments

Comments
 (0)
0