Browse Source

[https://github.com/tracim/tracim/issues/815] fixed workspace icon

Skylsmoi 5 years ago
parent
commit
083fb91b9a

+ 2 - 2
frontend/src/component/Header/MenuActionListItem/AdminLink.jsx View File

@@ -1,6 +1,6 @@
1 1
 import React from 'react'
2 2
 import { Link } from 'react-router-dom'
3
-import { PAGE } from '../../../helper.js'
3
+import { PAGE, workspaceConfig } from '../../../helper.js'
4 4
 
5 5
 const AdminLink = props => {
6 6
   return (
@@ -12,7 +12,7 @@ const AdminLink = props => {
12 12
 
13 13
         <div className='adminlink__setting dropdown-menu' aria-labelledby='dropdownMenuButton'>
14 14
           <Link className='setting__link dropdown-item' to={PAGE.ADMIN.WORKSPACE}>
15
-            <i className='fa fa-fw fa-space-shuttle mr-2' />
15
+            <i className={`fa fa-fw fa-${workspaceConfig.faIcon} mr-2`} />
16 16
             {props.t('Admin workspace')}
17 17
           </Link>
18 18
 

+ 1 - 1
frontend/src/helper.js View File

@@ -15,7 +15,7 @@ export const COOKIE = {
15 15
 // Côme - 2018/08/02 - shouldn't this come from api ?
16 16
 export const workspaceConfig = {
17 17
   slug: 'workspace',
18
-  faIcon: 'space-shuttle',
18
+  faIcon: 'bank',
19 19
   hexcolor: '#7d4e24',
20 20
   creationLabel: 'Create a workspace',
21 21
   domContainer: 'appFeatureContainer'

+ 1 - 1
frontend_app_workspace/src/container/PopupCreateWorkspace.jsx View File

@@ -11,7 +11,7 @@ import i18n from '../i18n.js'
11 11
 const debug = { // outdated
12 12
   config: {
13 13
     slug: 'workspace',
14
-    faIcon: 'space-shuttle',
14
+    faIcon: 'bank',
15 15
     hexcolor: '#7d4e24',
16 16
     creationLabel: 'Create a workspace',
17 17
     domContainer: 'appFeatureContainer',