Skip to content
Snippets Groups Projects
Commit fc02415b authored by jvanboxtel@wisc.edu's avatar jvanboxtel@wisc.edu
Browse files

ROENROLL-1667 typography update

parent d2278ff6
No related branches found
No related tags found
No related merge requests found
import { Component, ViewChild, OnInit } from '@angular/core'; import { Component, ViewChild, OnInit } from '@angular/core';
import { MatSidenav, MatDialog } from '@angular/material'; import { MatSidenav, MatDialog } from '@angular/material';
import { Observable } from 'rxjs';
import { Profile } from '@app/core/models/profile'; import { Profile } from '@app/core/models/profile';
import { import {
FormBuilder, FormBuilder,
...@@ -32,7 +31,6 @@ export class AppComponent implements OnInit { ...@@ -32,7 +31,6 @@ export class AppComponent implements OnInit {
private api: DegreePlannerApiService, private api: DegreePlannerApiService,
) { ) {
this.subjectCode = new FormControl('', [Validators.required]); this.subjectCode = new FormControl('', [Validators.required]);
this.selectedDegreePlan = 520224;
this.coursesForm = this.fb.group({ this.coursesForm = this.fb.group({
coursesInput: null, coursesInput: null,
}); });
......
...@@ -3,6 +3,7 @@ import { Injectable } from '@angular/core'; ...@@ -3,6 +3,7 @@ import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Location } from '@angular/common'; import { Location } from '@angular/common';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { of } from 'rxjs';
import { map } from 'rxjs/operators'; import { map } from 'rxjs/operators';
import { environment } from './../../../environments/environment'; import { environment } from './../../../environments/environment';
import { Note } from '@app/core/models/note'; import { Note } from '@app/core/models/note';
...@@ -53,7 +54,12 @@ export class DegreePlannerApiService { ...@@ -53,7 +54,12 @@ export class DegreePlannerApiService {
} }
public getUserProfile(): Observable<Profile> { public getUserProfile(): Observable<Profile> {
return this.http.get<Profile>('/profile', HTTP_OPTIONS); // Prevents error locally
if (environment.production) {
return this.http.get<Profile>('/profile', HTTP_OPTIONS);
} else {
return of<Profile>();
}
} }
public getAllDegreePlans(): Observable<DegreePlan[]> { public getAllDegreePlans(): Observable<DegreePlan[]> {
......
.year-container { .year-container {
padding: 4px; // padding: 4px;
} }
...@@ -107,7 +107,7 @@ body { ...@@ -107,7 +107,7 @@ body {
.error-icon, .error-icon,
.help-icon, .help-icon,
.not-offered-icon { .not-offered-icon {
font-size: 24px !important; font-size: 18px !important;
margin-left: 5px; margin-left: 5px;
&:hover { &:hover {
cursor: default; cursor: default;
...@@ -156,7 +156,8 @@ body { ...@@ -156,7 +156,8 @@ body {
.mat-form-field, .mat-form-field,
#menu-toggle-btn { #menu-toggle-btn {
&:hover { &:hover {
opacity: 0.8; // Hinders the readability of tabs while hovering
// opacity: 0.8;
} }
&:focus { &:focus {
outline: 2px solid #5e9ed6; outline: 2px solid #5e9ed6;
......
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