Skip to content

Commit c0fb490

Browse files
author
Alejandro Marques
committed
workspaces initial state fix
1 parent 829727f commit c0fb490

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CBAWS",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"author": "Alejandro Jimenez Marques",
55
"private": true,
66
"homepage": "./",

src/views/ViewA.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ class ViewA extends React.Component {
6969
let workspacesStore = store.get('workspaces');
7070
let imagesStore = store.get('images');
7171
if(typeof(workspacesStore)!=='undefined'){
72+
for(let w in workspacesStore){
73+
workspacesStore[w] = 0;
74+
}
7275
this.setState({workSpaces: workspacesStore});
7376
}
7477
//console.log(workspacesStore);
@@ -230,10 +233,12 @@ class ViewA extends React.Component {
230233
let children = [];
231234
for(let workspace in this.state.workSpaces){
232235
children.push(
233-
<ListItem className="bttn" key={workspace}>
234-
<a onClick={() => {this.openWorkSpace(workspace)}} href="#/" >
236+
<ListItem className="bttn" key={workspace} style={{borderRadius: 5, borderLeft: this.activeColor(workspace) === 1 ? '2px solid #FF9735' : 'none', borderRight: this.activeColor(workspace) === 1 ? '2px solid rgba(255, 151, 53, 0.000)' : 'none'}}>
237+
{/*<span style={{borderLeft: this.activeColor(workspace) === 1 ? '1px dotted white' : 'none'}}></span>*/}
238+
<div style={{backgroundImage: 'red', position:'absolute', left:0, width: 2}}></div>
239+
<a onClick={() => {this.openWorkSpace(workspace)}} href="#/">
235240
<Tooltip title={workspace} enterDelay={700} leaveDelay={200} placement="bottom">
236-
<img style={{opacity:this.activeColor(workspace)}} alt={workspace} className="workspace-img" src={this.getImageBase64(workspace)} />
241+
<img style={{opacity:this.activeColor(workspace), backgroundColor:'#FFFFFF'}} alt={workspace} className="workspace-img" src={this.getImageBase64(workspace)} />
237242
{/*this.getImageBase64(workspace)*/}
238243
</Tooltip>
239244
</a>

0 commit comments

Comments
 (0)