Merge pull request #17 from smthbh/Update-QuestCompareUsability

Update quest compare usability
This commit is contained in:
Brad 2025-04-29 13:36:23 -04:00 committed by GitHub
commit ca5bb1bc8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 deletions

View file

@ -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,

View file

@ -24,7 +24,7 @@
selected
{{/if}}
{{/if}}>
{{this.name}} ({{this.realmName}})
{{this.name}}
</option>
{{/each}}
</select>

View file

@ -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>

View file

@ -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;