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);
|
const existingQuest = categories[category].find(q => q.id === quest.id);
|
||||||
if (existingQuest) {
|
if (existingQuest) {
|
||||||
existingQuest[source] = quest.status;
|
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 {
|
} else {
|
||||||
categories[category].push({
|
categories[category].push({
|
||||||
id: quest.id,
|
id: quest.id,
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
selected
|
selected
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}>
|
{{/if}}>
|
||||||
{{this.name}} ({{this.realmName}})
|
{{this.name}}
|
||||||
</option>
|
</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<select id="compareCharacter">
|
<select id="compareCharacter">
|
||||||
<option value="">Select a character...</option>
|
<option value="">Select a character...</option>
|
||||||
{{#each data.otherCharacters}}
|
{{#each data.otherCharacters}}
|
||||||
<option value="{{this.realmName}}/{{this.name}}">{{this.name}} ({{this.realmName}})</option>
|
<option value="{{this.realmName}}/{{this.name}}">{{this.name}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -123,9 +123,9 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr.quest-diff {
|
/* tr.quest-diff {
|
||||||
background-color: rgba(255, 255, 0, 0.2) !important;
|
background-color: rgba(255, 255, 0, 0.2) !important;
|
||||||
}
|
} */
|
||||||
|
|
||||||
tr.quest-missing-1 td:nth-child(3) {
|
tr.quest-missing-1 td:nth-child(3) {
|
||||||
background-color: rgba(255, 0, 0, 0.2) !important;
|
background-color: rgba(255, 0, 0, 0.2) !important;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue