|
|
@ -54,19 +54,13 @@ export class SwapPanel extends AbstractPanel { |
|
|
|
/** The header of the swap panel */ |
|
|
|
/** The header of the swap panel */ |
|
|
|
renderHeader () { |
|
|
|
renderHeader () { |
|
|
|
let name = ' - ' |
|
|
|
let name = ' - ' |
|
|
|
let hasSettings = false |
|
|
|
|
|
|
|
if (this.active) { |
|
|
|
if (this.active) { |
|
|
|
const { profile } = this.store.getOne(this.active) |
|
|
|
const { profile } = this.store.getOne(this.active) |
|
|
|
name = profile.displayName ? profile.displayName : profile.name |
|
|
|
name = profile.displayName ? profile.displayName : profile.name |
|
|
|
hasSettings = profile.settings || false |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return yo` |
|
|
|
return yo` |
|
|
|
<header class="${css.swapitHeader}"> |
|
|
|
<header class="${css.swapitHeader}"> |
|
|
|
<h6 class="${css.swapitTitle}">${name}</h6> |
|
|
|
<h6 class="${css.swapitTitle}">${name}</h6> |
|
|
|
<div class="${css.icons}"> |
|
|
|
|
|
|
|
${hasSettings |
|
|
|
|
|
|
|
? yo`<i class="fas fa-cog"></i>` |
|
|
|
|
|
|
|
: yo`<i></i>`} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</header>` |
|
|
|
</header>` |
|
|
|
} |
|
|
|
} |
|
|
|