Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
kmathmann committed Mar 28, 2018
2 parents 46b0847 + eddba4c commit 374230c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 24 deletions.
10 changes: 5 additions & 5 deletions src/constants/navigation-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ import TAPPIDS from './tapp-ids';
const NAVIGATION_ITEMS = [
{
tappId: TAPPIDS.CHAYNS_ID,
icon: 'user'
icon: 'fa-user'
},
{
tappId: TAPPIDS.INTERCOM,
icon: 'comments'
icon: 'fa-comments'
},
{
tappId: TAPPIDS.TICKETS,
icon: 'ticket'
icon: 'fa-ticket'
},
{
tappId: TAPPIDS.DOCUMENTS,
icon: 'file'
icon: 'fa-file'
},
{
tappId: TAPPIDS.MONEY,
icon: 'eur'
icon: 'fa-eur'
},
];

Expand Down
1 change: 0 additions & 1 deletion src/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//objects
@import './objects/wait-cursor';
@import './objects/floating-button';
@import './objects/icon';
@import './objects/image-wrapper';
@import './objects/video-wrapper';
@import './objects/console';
Expand Down
17 changes: 0 additions & 17 deletions src/style/objects/icon.scss

This file was deleted.

2 changes: 2 additions & 0 deletions src/ui/dynamic-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ export async function setDynamicStyle() {
const getColor = (percentage, opacity) => getRelativeColor(chaynsInfo.Color, percentage, opacity);

const chaynsCss = htmlToElement(`<link rel="stylesheet" href="https://chayns-res.tobit.com/API/v3.1/css/chayns.min.css?color=${getColor(100).substr(1, 6)}">`);
const fontAwesomeCss = htmlToElement('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">');

document.head.appendChild(chaynsCss);
document.head.appendChild(fontAwesomeCss);

const customBackgroundColor = getUrlParameters().backgroundcolor && !getUrlParameters().backgroundcolor.match(/[^0-9A-Fa-f]/g) && `#${getUrlParameters().backgroundcolor}`;

Expand Down
2 changes: 1 addition & 1 deletion src/ui/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function getNavigationElement() {
NAVIGATION_ITEMS.forEach((item) => {
if (!item.disabled) {
const $navItem = htmlToElement(`<li class="navigation__element">
<i class="ChaynsCS-Color-80Pcnt icon ${item.icon}"></i>
<i class="ChaynsCS-Color-80Pcnt fa ${item.icon}"></i>
</li>`);

$navItem.addEventListener('click', () => loadTapp(item.tappId));
Expand Down

0 comments on commit 374230c

Please sign in to comment.