Merge pull request #17 from smthbh/Update-QuestCompareUsability
Update quest compare usability
This commit is contained in:
commit
ca5bb1bc8c
4 changed files with 8 additions and 4 deletions
|
|
@ -450,6 +450,10 @@ export class CharacterController {
|
|||
const existingQuest = categories[category].find(q => q.id === quest.id);
|
||||
if (existingQuest) {
|
||||
existingQuest[source] = quest.status;
|
||||
// Remove quest if both characters have completed it
|
||||
if (existingQuest.char1Status === 'Completed' && existingQuest.char2Status === 'Completed') {
|
||||
categories[category] = categories[category].filter(q => q.id !== quest.id);
|
||||
}
|
||||
} else {
|
||||
categories[category].push({
|
||||
id: quest.id,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
selected
|
||||
{{/if}}
|
||||
{{/if}}>
|
||||
{{this.name}} ({{this.realmName}})
|
||||
{{this.name}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<select id="compareCharacter">
|
||||
<option value="">Select a character...</option>
|
||||
{{#each data.otherCharacters}}
|
||||
<option value="{{this.realmName}}/{{this.name}}">{{this.name}} ({{this.realmName}})</option>
|
||||
<option value="{{this.realmName}}/{{this.name}}">{{this.name}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -123,9 +123,9 @@
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
tr.quest-diff {
|
||||
/* tr.quest-diff {
|
||||
background-color: rgba(255, 255, 0, 0.2) !important;
|
||||
}
|
||||
} */
|
||||
|
||||
tr.quest-missing-1 td:nth-child(3) {
|
||||
background-color: rgba(255, 0, 0, 0.2) !important;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue