diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d19d7cb0..020415da 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -60,7 +60,6 @@ export function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader { }, useDefaultLang: false, }), - OldStuffModule, ParticipationModule, ], providers: [Title, TranslateService], diff --git a/src/app/features/participation/participation.module.ts b/src/app/features/participation/participation.module.ts index 748585e6..457931c2 100644 --- a/src/app/features/participation/participation.module.ts +++ b/src/app/features/participation/participation.module.ts @@ -6,11 +6,10 @@ import { SharedModule } from '../../shared/shared.module'; import { ParticipationRoutingModule } from './participation-routing.module'; import { ParticipationComponent } from './participation.component'; import { PollComponent } from './poll/poll.component'; -import { FeedbackComponent } from './feedback/feedback.component'; @NgModule({ - declarations: [ParticipationComponent, PollComponent, FeedbackComponent], + declarations: [ParticipationComponent, PollComponent], imports: [CommonModule, ParticipationRoutingModule, SharedModule, TranslateModule.forChild({ extend: true })], - exports: [FeedbackComponent], + exports: [], }) export class ParticipationModule {} diff --git a/src/app/features/participation/feedback/feedback.component.html b/src/app/shared/components/feedback/feedback.component.html similarity index 90% rename from src/app/features/participation/feedback/feedback.component.html rename to src/app/shared/components/feedback/feedback.component.html index 28865ed7..ab8e07fe 100644 --- a/src/app/features/participation/feedback/feedback.component.html +++ b/src/app/shared/components/feedback/feedback.component.html @@ -1,20 +1,20 @@
+ Par email - + Par Matrix - - Discuter sur Framateam + Discuter sur Framateam - Créer une Issue sur Framagit + Créer une Issue sur Framagit
diff --git a/src/app/features/participation/feedback/feedback.component.scss b/src/app/shared/components/feedback/feedback.component.scss similarity index 79% rename from src/app/features/participation/feedback/feedback.component.scss rename to src/app/shared/components/feedback/feedback.component.scss index c872a2e7..b5963fdb 100644 --- a/src/app/features/participation/feedback/feedback.component.scss +++ b/src/app/shared/components/feedback/feedback.component.scss @@ -5,7 +5,7 @@ color: white; .feedback-choices { &.active { - background: #8eb6ed; + background: #0c5593; border-radius: 0.5em; padding: 1em; margin-bottom: 0.5em; @@ -15,12 +15,11 @@ margin: 1ch; display: block; max-width: 10em; - a { - color: white; - &:hover { - background: white; - color: black; - } + color: white; + padding: 0.5rem 1rem; + &:hover { + background: white; + color: black; } } i { diff --git a/src/app/features/participation/feedback/feedback.component.spec.ts b/src/app/shared/components/feedback/feedback.component.spec.ts similarity index 100% rename from src/app/features/participation/feedback/feedback.component.spec.ts rename to src/app/shared/components/feedback/feedback.component.spec.ts diff --git a/src/app/features/participation/feedback/feedback.component.ts b/src/app/shared/components/feedback/feedback.component.ts similarity index 100% rename from src/app/features/participation/feedback/feedback.component.ts rename to src/app/shared/components/feedback/feedback.component.ts diff --git a/src/app/shared/shared.module.ts b/src/app/shared/shared.module.ts index 4c19901e..266abaf1 100644 --- a/src/app/shared/shared.module.ts +++ b/src/app/shared/shared.module.ts @@ -17,9 +17,10 @@ import { ConfirmationService, MessageService } from 'primeng/api'; import { PageNotFoundComponent } from './components/page-not-found/page-not-found.component'; import { PollPageComponent } from './components/poll-page/poll-page.component'; +import { FeedbackComponent } from './components/feedback/feedback.component'; @NgModule({ - declarations: [PageNotFoundComponent, PollPageComponent], + declarations: [PageNotFoundComponent, PollPageComponent, FeedbackComponent], imports: [ CommonModule, ChartsModule, @@ -38,6 +39,7 @@ import { PollPageComponent } from './components/poll-page/poll-page.component'; ChartsModule, ConfirmDialogModule, DialogModule, + FeedbackComponent, InputSwitchModule, InputTextareaModule, MessageModule,