rename companyconnect to fit with URL scheme
This commit is contained in:
+9
-6
@@ -8,12 +8,12 @@ import { Authentication } from 'app/services/Authentication';
|
|||||||
import { Company } from 'app/models/Company';
|
import { Company } from 'app/models/Company';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'main-company-connect',
|
selector: 'main-company-editor',
|
||||||
templateUrl: './companyconnect.component.html',
|
templateUrl: './editor.component.html',
|
||||||
styleUrls: [ './companyconnect.component.css' ],
|
styleUrls: [ './editor.component.css' ],
|
||||||
imports: [ FormsModule, CommonModule, RouterModule ]
|
imports: [ FormsModule, CommonModule, RouterModule ]
|
||||||
})
|
})
|
||||||
export class CompanyConnectComponent {
|
export class CompanyEditorComponent {
|
||||||
|
|
||||||
@ViewChildren('step') formSteps!: QueryList<ElementRef<HTMLDivElement>>;
|
@ViewChildren('step') formSteps!: QueryList<ElementRef<HTMLDivElement>>;
|
||||||
currentStep: number = 0;
|
currentStep: number = 0;
|
||||||
@@ -23,7 +23,10 @@ export class CompanyConnectComponent {
|
|||||||
MaxFileMB: number = 3;
|
MaxFileMB: number = 3;
|
||||||
|
|
||||||
constructor( private http: HttpClient, private router: Router, private route: ActivatedRoute, private title: Title, public auth: Authentication ) {
|
constructor( private http: HttpClient, private router: Router, private route: ActivatedRoute, private title: Title, public auth: Authentication ) {
|
||||||
this.title.setTitle("Company - Connect | BoredCareers");
|
this.title.setTitle("Company - Editor | BoredCareers");
|
||||||
|
|
||||||
|
// Query param CompanyID -> Edit
|
||||||
|
// Query param null -> New
|
||||||
};
|
};
|
||||||
|
|
||||||
ngAfterViewInit(){
|
ngAfterViewInit(){
|
||||||
@@ -35,7 +38,7 @@ export class CompanyConnectComponent {
|
|||||||
|
|
||||||
@HostListener('window:keydown', ['$event'])
|
@HostListener('window:keydown', ['$event'])
|
||||||
handleGlobalKeyDown(event: KeyboardEvent){
|
handleGlobalKeyDown(event: KeyboardEvent){
|
||||||
if (event.key === 'Tab'){
|
if ( event.key === 'Tab' ){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user