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
 import React from 'react'
1
 import React from 'react'
2
 import { Link } from 'react-router-dom'
2
 import { Link } from 'react-router-dom'
3
-import { PAGE } from '../../../helper.js'
3
+import { PAGE, workspaceConfig } from '../../../helper.js'
4
 
4
 
5
 const AdminLink = props => {
5
 const AdminLink = props => {
6
   return (
6
   return (
12
 
12
 
13
         <div className='adminlink__setting dropdown-menu' aria-labelledby='dropdownMenuButton'>
13
         <div className='adminlink__setting dropdown-menu' aria-labelledby='dropdownMenuButton'>
14
           <Link className='setting__link dropdown-item' to={PAGE.ADMIN.WORKSPACE}>
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
             {props.t('Admin workspace')}
16
             {props.t('Admin workspace')}
17
           </Link>
17
           </Link>
18
 
18
 

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

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

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

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