TimothyGillespie / WerwolfSpielleiterToolWeb

0 stars 0 forks source link

Replace the Shortcut of the enums (like H, UW etc) with their respective string #11

Open TimothyGillespie opened 4 years ago

TimothyGillespie commented 4 years ago

I couldn't figure out how to display the string for the table headings at some points. This should be fixed later on.

A not very elegant but very much functional method would be to write a function which returns the respective string for each ENUM which gets explicitly returns with a switch case. This function should be in the role.ts file in the classes folder. It's signature could be "getEnumStringValue(role: Role)"

Other solutions are of course possible too.

They should be used and fitted in the respective positions in the source code.