Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
code-smell: TT-337 Fixing code smells
  • Loading branch information
Edgar Guaman committed Sep 20, 2021
commit 5ab32aaa1aedd9bce1c3edd0b639dbd316852289
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export class ActivityListComponent implements OnInit {

updateActivity(activityId: string): void {
this.store.dispatch(new SetActivityToEdit(activityId));
this.changeValueShowActivityForm.emit(this.showActivityForm = true);
this.showActivityForm = true;
this.changeValueShowActivityForm.emit(this.showActivityForm);
}

unarchiveActivity(): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<h4>Activities</h4>
<hr/>
<div>

<form [formGroup]="activityForm" (ngSubmit)="onSubmit(activityForm.value)">
<div class="form-group">
<label>Name:</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FormBuilder, Validators, FormGroup } from '@angular/forms';
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
import { Store, select } from '@ngrx/store';
import { Activity } from '../../../shared/models';
import { ActivityState } from './../../store/activity-management.reducers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class ActivitiesManagementComponent {

activateActivityForm() {
this.store.dispatch(new SetActivityToEdit(null));
this.showActivityForm === false ? this.showActivityForm = true : this.showActivityForm = false;
!this.showActivityForm ? this.showActivityForm = true : this.showActivityForm = false;
}

closeFormActivity(event) {
Expand Down