Skip to content

Commit

Permalink
Fix hosting setup and text in popup
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfriefeldt committed Oct 3, 2023
1 parent a571022 commit 3069f3e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 16 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

3 changes: 3 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
23 changes: 9 additions & 14 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
"functions": { "source": "dist/analog/server" },
"hosting": [
{
"site": "techstacksthlm",
"public": "dist/analog/public",
"cleanUrls": true,
"rewrites": [{ "source": "**", "function": "server" }]
}
]
}
6 changes: 6 additions & 0 deletions src/app/components/add-company/add-company.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ import { ModalComponent } from '../modal/modal.component';
width: 100%;
}
.name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.half {
width: 50%;
}
Expand Down
6 changes: 5 additions & 1 deletion src/app/pages/index.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ModalComponent } from '../components/modal/modal.component';
<app-header />
<app-companies
[companies]="companies$ | async"
(onEditCompany)="companyToEdit = $event"
(onEditCompany)="onEditCompany($event)"
/>
<app-add-company
Expand Down Expand Up @@ -51,4 +51,8 @@ export default class HomeComponent {
public afterAddCompany() {
this.updateCompanies$.next();
}

public onEditCompany(company: Company): void {
this.companyToEdit = structuredClone(company);
}
}

0 comments on commit 3069f3e

Please sign in to comment.