diff --git a/.github/workflows/front-deploy.yml b/.github/workflows/front-deploy.yml index 3ddf6c5..c897cc8 100644 --- a/.github/workflows/front-deploy.yml +++ b/.github/workflows/front-deploy.yml @@ -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 \ No newline at end of file + working-directory: ./front diff --git a/front/src/app/features/links/create-link/create-link.component.ts b/front/src/app/features/links/create-link/create-link.component.ts index 04fc5a1..f4bbabb 100644 --- a/front/src/app/features/links/create-link/create-link.component.ts +++ b/front/src/app/features/links/create-link/create-link.component.ts @@ -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 @@ -47,7 +48,7 @@ export class CreateLinkComponent implements OnInit, OnDestroy { }) } - onSubmit(): void { + public onSubmit(): void { if (this.formGroup.valid) { let categories = this.linkCategoriesArray?.value