60 lines
1.3 KiB
Vue
60 lines
1.3 KiB
Vue
<template>
|
|
<div>
|
|
<div
|
|
class="colorOption"
|
|
:style="{ background: profileList[activeProfile].bgColor, color: profileList[activeProfile].textColor }"
|
|
@click="toggleProfileList"
|
|
>
|
|
<p
|
|
class="initial"
|
|
>
|
|
{{ profileInitials[activeProfile] }}
|
|
</p>
|
|
</div>
|
|
<ft-card
|
|
id="profileList"
|
|
tabindex="-1"
|
|
>
|
|
<h3
|
|
class="profileListTitle"
|
|
>
|
|
Profile Select
|
|
</h3>
|
|
<ft-icon-button
|
|
class="profileSettings"
|
|
icon="sliders-h"
|
|
@click="openProfileSettings"
|
|
/>
|
|
<div
|
|
class="profileWrapper"
|
|
>
|
|
<div
|
|
v-for="(profile, index) in profileList"
|
|
:key="index"
|
|
class="profile"
|
|
@click="setActiveProfile(profile)"
|
|
>
|
|
<div
|
|
class="colorOption"
|
|
:style="{ background: profile.bgColor, color: profile.textColor }"
|
|
>
|
|
<p
|
|
class="initial"
|
|
>
|
|
{{ profileInitials[index] }}
|
|
</p>
|
|
</div>
|
|
<p
|
|
class="profileName"
|
|
>
|
|
{{ profile.name }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</ft-card>
|
|
</div>
|
|
</template>
|
|
|
|
<script src="./ft-profile-selector.js" />
|
|
<style scoped src="./ft-profile-selector.css" />
|