Skip to content

Commit

Permalink
Merge pull request #191 from FlyingPAD/develop
Browse files Browse the repository at this point in the history
Refactoring
  • Loading branch information
FlyingPAD authored Oct 31, 2024
2 parents 1f1657e + 63523fa commit 92a78a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/front-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ jobs:
- name: Install lftp
run: sudo apt-get install -y lftp

- name: Clean up old files (optional)
run: rm -f ./dist/flying-pad/browser/main-*.js
working-directory: ./front

- name: Deploy to FTP
run: |
lftp -e "set ftp:ssl-allow no; set mirror:use-pget-n 5; mirror --reverse --delete --verbose=3 --no-perms --exclude .well-known/ --exclude web.config ./dist/flying-pad/browser /${{ secrets.FTP_DIR }}; bye" ftp://${{ secrets.FTP_HOST }} -u ${{ secrets.FTP_USER }},${{ secrets.FTP_PASS }}
working-directory: ./front
working-directory: ./front
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ export class CreateLinkComponent implements OnInit, OnDestroy {
#flowService = inject(FlowService)
#builder = inject(FormBuilder)

subscription = new Subscription()
formGroup!: FormGroup
private subscription = new Subscription()

public formGroup!: FormGroup

get linkCategoriesArray(): FormArray {
return this.formGroup.get('linkCategories') as FormArray
Expand Down Expand Up @@ -47,7 +48,7 @@ export class CreateLinkComponent implements OnInit, OnDestroy {
})
}

onSubmit(): void {
public onSubmit(): void {
if (this.formGroup.valid) {
let categories = this.linkCategoriesArray?.value

Expand Down

0 comments on commit 92a78a7

Please sign in to comment.