Skip to content

Commit fadbb34

Browse files
authored
Merge pull request nus-cs2103-AY2021S1#82 from GeNiaaz/refactor-project-tags
Fix tags not highlighted in blue
2 parents 3c43ddf + f1774dc commit fadbb34

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/main/java/seedu/address/logic/commands/AddCommand.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public class AddCommand extends Command {
2828
+ "[" + PREFIX_PROJECT_TAG + "TAG]...\n"
2929
+ "[" + PREFIX_TASK + "TASK]...\n"
3030
+ "Example: " + COMMAND_WORD + " "
31-
+ PREFIX_PROJECT_NAME + "John Doe "
31+
+ PREFIX_PROJECT_NAME + "The Blair project "
3232
+ PREFIX_DEADLINE + "29-02-2020 00:00:00"
3333
+ PREFIX_EMAIL + "[email protected] "
34-
+ PREFIX_PROJECT_DESCRIPTION + "311, Clementi Ave 2, #02-25 "
35-
+ PREFIX_PROJECT_TAG + "friends "
36-
+ PREFIX_PROJECT_TAG + "owesMoney"
34+
+ PREFIX_PROJECT_DESCRIPTION + "Coding in Greenwich "
35+
+ PREFIX_PROJECT_TAG + "challenging "
36+
+ PREFIX_PROJECT_TAG + "WFH"
3737
+ PREFIX_TASK + "Write User Guide";
3838

3939
public static final String MESSAGE_SUCCESS = "New project added: %1$s";

src/main/java/seedu/address/ui/ProjectCard.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class ProjectCard extends UiPart<Region> {
4141
@FXML
4242
private Label email;
4343
@FXML
44-
private FlowPane projectTags;
44+
private FlowPane tags;
4545
@FXML
4646
private FlowPane tasks;
4747

@@ -57,7 +57,7 @@ public ProjectCard(Project project, int displayedIndex, Status status) {
5757
deadline.setText(project.getDeadline().value);
5858
project.getProjectTags().stream()
5959
.sorted(Comparator.comparing(projectTag -> projectTag.projectTagName))
60-
.forEach(projectTag -> this.projectTags.getChildren()
60+
.forEach(projectTag -> this.tags.getChildren()
6161
.add(new Label(projectTag.projectTagName)));
6262

6363
projectDescription.setText(project.getProjectDescription().value);

src/main/resources/view/ProjectListCard.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</Label>
2828
<Label fx:id="projectName" text="\$first" styleClass="cell_big_label" />
2929
</HBox>
30-
<FlowPane fx:id="projectTags" />
30+
<FlowPane fx:id="tags" />
3131
<Label fx:id="deadline" styleClass="cell_small_label" text="\$deadline" />
3232
<Label fx:id="projectDescription" styleClass="cell_small_label" text="\$projectDescription" />
3333
<Label fx:id="email" styleClass="cell_small_label" text="\$email" />

0 commit comments

Comments
 (0)