Changeset de9d697


Ignore:
Timestamp:
02/01/21 00:15:12 (3 years ago)
Author:
Mile Jankuloski <mile.jankuloski@…>
Branches:
master
Children:
afefe75
Parents:
28d7d35
Message:

Patch bugs, minor changes

Location:
Farmatiko/ClientApp/src/app
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/dialogs/facility-dialog/facility-dialog.component.ts

    r28d7d35 rde9d697  
    4141              iconUrl: 'assets/hospital-icon.png'
    4242            })
    43           }).bindPopup("Аптека: "+this.facility?.name);
     43          }).bindPopup(this.facility?.name);
    4444          this.options.layers.push(layer);
    4545          this.options.center = latLng(obj[0]?.lat, obj[0]?.lon);
    4646          this.options.zoom = 13;
    4747        }
    48       }, error => console.error(error));
    49       this.mapShown = false;
    50       setTimeout(() => this.mapShown = true, 300);
     48      }, error => console.error(error),
     49      () => {
     50        this.mapShown = false;
     51        setTimeout(() => this.mapShown = true, 300);
     52      });
    5153  }
    52 
    5354
    5455  close() {
  • Farmatiko/ClientApp/src/app/dialogs/pharmacy-dialog/pharmacy-dialog.component.ts

    r28d7d35 rde9d697  
    4646          this.options.zoom = 13;
    4747        }
    48       }, error => console.error(error));
    49       this.mapShown = false;
    50       setTimeout(() => this.mapShown = true, 300);
     48      }, error => console.error(error),
     49      () => {
     50        this.mapShown = false;
     51        setTimeout(() => this.mapShown = true, 200);
     52      });
    5153  }
    5254
  • Farmatiko/ClientApp/src/app/login/login.component.css

    r28d7d35 rde9d697  
    1414    transform: translate(-50%, -50%);
    1515}
     16
    1617
    1718:host {
  • Farmatiko/ClientApp/src/app/login/login.component.html

    r28d7d35 rde9d697  
    2727</mat-card-content>
    2828</mat-card>
    29 </div>
     29<br>
     30  <mat-card>
     31  <mat-card-header><h2>Регистрација
     32    <div class="aligner">
     33    <button mat-icon-button color="accent" (click)="expandRegistration()">
     34      <mat-icon>local_hospital</mat-icon>
     35    </button>
     36  </div></h2></mat-card-header>
     37  <mat-card-content *ngIf="expanded">
     38    <div class="content">
     39      Модераторски профил може да има само еден<br> претставник од компанија што поседува деловен објект <br> - Аптека. За регистрација на профилот, потребно е <br> компанијата да приложи соодветен доказ со испраќање<br> на мејл до нашата е-пошта: <a href="mailto:admin@farmatiko.tk">admin@farmatiko.tk</a>
     40    </div>
     41  </mat-card-content>
     42  </mat-card>
     43  </div>
  • Farmatiko/ClientApp/src/app/login/login.component.ts

    r28d7d35 rde9d697  
    1818  password = '';
    1919  loginError = false;
     20  expanded = false;
    2021  private subscription: Subscription;
    2122
     
    6768    this.loginForm.reset();
    6869  }
     70
     71  expandRegistration() {
     72    this.expanded = !this.expanded;
     73  }
    6974}
  • Farmatiko/ClientApp/src/app/nav-menu/nav-menu.component.html

    r28d7d35 rde9d697  
    2424          </li>
    2525          <li class="nav-item" [routerLinkActive]="['link-active']">
    26             <a class="nav-link text-dark" [routerLink]="['/koronavirus']">Коронавирус</a>
     26            <a class="nav-link text-dark" [routerLink]="['/koronavirus']">Пандемии</a>
    2727          </li>
    2828          <li *ngIf="loggedIn">
  • Farmatiko/ClientApp/src/app/shared/data.service.ts

    r28d7d35 rde9d697  
    178178                    );
    179179    }
    180     //PharmacyHead PUT
    181180    updatePharmacyHead(head: IPharmacyHead) : Observable<IPharmacyHead> {
    182         return this.http.put<IPharmacyHead>(this.basePharmacyHead + '/update', head)
    183                    .pipe(
    184                         map((data) => {
    185                             return data;
    186                         }),
    187                         catchError(this.handleError)
    188                     );
    189     }
    190     //PharmacyHead DELETE
    191     deletePharmacyHead(id: string) : Observable<boolean> {
    192         return this.http.delete<boolean>(this.basePharmacyHead + '/delete/' + id)
    193                    .pipe(catchError(this.handleError));
     181        return this.http.post<IPharmacyHead>(this.basePharmacyHead + '/update', head)
     182                   .pipe(
     183                        map((data) => {
     184                            return data;
     185                        }),
     186                        catchError(this.handleError)
     187                    );
     188    }
     189    deletePharmacyHead(id: string) : Observable<any> {
     190        return this.http.post<any>(this.basePharmacyHead + '/delete/' + id, id)
     191                    .pipe(
     192                        map((data) => {
     193                            return data;
     194                        }),
     195                        catchError(this.handleError)
     196                    );
    194197    }
    195198    deleteClaimingRequest(id: string) : Observable<boolean> {
    196         return this.http.delete<boolean>(this.basePharmacyHead + '/requests/' + id)
    197                    .pipe(catchError(this.handleError));
     199        return this.http.post<boolean>(this.basePharmacyHead + '/requests/' + id, id)
     200                    .pipe(
     201                        map((data) => {
     202                            return data;
     203                        }),
     204                        catchError(this.handleError)
     205                    );
    198206    }
    199207
Note: See TracChangeset for help on using the changeset viewer.