Skip to content
This repository was archived by the owner on Mar 2, 2020. It is now read-only.

Objectif Monospaced Font #462

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Objectif Monospaced Font #462

wants to merge 1 commit into from

Conversation

Daedo
Copy link
Collaborator

@Daedo Daedo commented Jun 17, 2019

The requirement input field switches to a monospaced font, when the user types objectif code.

@Daedo Daedo requested a review from junkerm June 17, 2019 14:00
@Daedo Daedo changed the title Workcommit Objectif Monospaced Font Jun 17, 2019
Copy link
Owner

@junkerm junkerm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works! A few remarks below. We should think about what we do with the field in the eiditor view, Will it be removed or will we put the same functionality there too?

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this whole project

}
desc = desc.trim();

if (desc.length <= 3) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to set this to 4? This means as soon as someone types the whole word "WENN" the font is changed.
Also you could make the code much more simple by just doing description.startsWith(this.objectifIndicator)


if (this.modelDescription.length > 0) {
element.modelRequirements = this.modelDescription;
if (description.length > 0) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please comment on what is happening here or better, create a separate method with a speaking name

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants