Skip to content
Snippets Groups Projects
Commit 7be9603c authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

chore: format files

parent 7da395d5
No related branches found
No related tags found
1 merge request!783V3.0.0
Showing
with 14 additions and 25 deletions
......@@ -5,7 +5,7 @@
<p *ngIf="formType === formTypeEnum.personaloffer">Création d'offre de service</p>
<div fxLayout="row" fxLayoutAlign="space-between center" fxLayoutGap="20px">
<label for="progressForm" [ngClass]="{ validate: currentPage === nbSteps }"
>{{ progressStatus > 100 ? 100 : (progressStatus | number: '1.0-0') }}%
>{{ progressStatus > 100 ? 100 : (progressStatus | number : '1.0-0') }}%
</label>
<progress
id="progressForm"
......
......@@ -4,7 +4,7 @@ import { Injectable } from '@angular/core';
* Guard to assert that we are coming from the structure form. Otherwise redirect to home
*/
@Injectable()
export class PersonalOfferGuard {
export class PersonalOfferGuard {
constructor(private router: Router) {}
canActivate(route: ActivatedRouteSnapshot): UrlTree | boolean {
......
......@@ -8,7 +8,7 @@
[icon]="'arrowBack'"
(click)="goBack()"
(keyup.enter)="goBack()"
/>
/>
<div class="titleContent">
<h3>Quels sont les horaires d'ouverture de la structure&nbsp;?</h3>
<p>Facultatif</p>
......
......@@ -6,7 +6,7 @@ import { AuthService } from '../services/auth.service';
* Guard to assert that we are logged in admin. Otherwise redirect to home
*/
@Injectable()
export class AdminGuard {
export class AdminGuard {
constructor(private authService: AuthService, private router: Router, private profileService: ProfileService) {}
canActivate(): UrlTree | boolean {
......
......@@ -5,7 +5,7 @@ import { AuthService } from '../services/auth.service';
* Guard to assert that we are logged in. Otherwise redirect to home
*/
@Injectable()
export class AuthGuard {
export class AuthGuard {
constructor(private authService: AuthService, private router: Router) {}
canActivate(_next: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean {
......
......@@ -10,7 +10,7 @@ export interface IDeactivateComponent {
* Guard to confirm we are leaving. Otherwise stay at current route.
*/
@Injectable()
export class DeactivateGuard {
export class DeactivateGuard {
component: Object;
canDeactivate(component: IDeactivateComponent): Observable<boolean> | Promise<boolean> | boolean {
......
......@@ -5,7 +5,7 @@ import { ProfileService } from '../profile/services/profile.service';
@Injectable({
providedIn: 'root',
})
export class IsPersonalOfferOwnerGuard {
export class IsPersonalOfferOwnerGuard {
constructor(private router: Router, private profileService: ProfileService) {}
async canActivate(route: ActivatedRouteSnapshot): Promise<boolean | UrlTree> {
......
......@@ -8,7 +8,7 @@ import { RouteRole } from '../shared/enum/routeRole.enum';
* Admin can access everything
*/
@Injectable()
export class RoleGuard {
export class RoleGuard {
constructor(private router: Router, private profileService: ProfileService, private authService: AuthService) {}
canActivate(route: ActivatedRouteSnapshot): UrlTree | boolean {
......
......@@ -6,7 +6,7 @@ import { TagWithMeta } from '../models/tagWithMeta.model';
import { PostService } from '../services/post.service';
@Injectable()
export class TagResolver {
export class TagResolver {
constructor(private postService: PostService) {}
resolve(): Observable<TagWithMeta> {
......
......@@ -8,7 +8,7 @@ import { Utils } from '../utils/utils';
import { PersonalOffer } from './../models/personalOffer.model';
@Injectable()
export class PersonalOfferResolver {
export class PersonalOfferResolver {
public subject = new Subject<PersonalOffer>();
constructor(
......
......@@ -9,7 +9,7 @@ import { SearchService } from '../structure-list/services/search.service';
import { Utils } from '../utils/utils';
@Injectable()
export class StructureResolver {
export class StructureResolver {
public subject = new Subject<Structure>();
constructor(
......
......@@ -6,7 +6,7 @@ import { TempUser } from '../models/temp-user.model';
import { TempUserService } from '../services/temp-user.service';
@Injectable()
export class TempUserResolver {
export class TempUserResolver {
constructor(private tempUserService: TempUserService, private router: Router) {}
resolve(route: ActivatedRouteSnapshot): Observable<TempUser> {
......
<button
[type]="type"
[ngClass]="classes"
[disabled]="disabled"
(click)="action.emit($event)">
<button [type]="type" [ngClass]="classes" [disabled]="disabled" (click)="action.emit($event)">
<app-svg-icon
*ngIf="iconName && iconPosition === 'left'"
[type]="iconFolder"
......@@ -19,5 +14,4 @@
[iconColor]="'currentColor'"
[iconClass]="'icon-20'"
/>
</button>
......@@ -21,12 +21,7 @@ import type { User } from './User';
Welcome, <b>{{ user.name }}</b
>!
</span>
<storybook-button
*ngIf="user"
size="small"
label="Log out"
(onClick)="onLogout.emit($event)"
/>
<storybook-button *ngIf="user" size="small" label="Log out" (onClick)="onLogout.emit($event)" />
</div>
<div *ngIf="!user">
<storybook-button
......
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