First implementation of color based on wallet value & Clean up

This commit is contained in:
FallenGravity
2019-10-19 22:32:09 +02:00
parent 4823427fa1
commit a9dbef7fe1
2 changed files with 49 additions and 46 deletions

View File

@@ -48,7 +48,7 @@
<i class="fas fa-qrcode"></i>
</button>
</td>
<td>{{balance}}</td>
<td id="colorbal" style="color: red;">{{balance}}</td>
</tr>
{{/addressData}}
</tbody>

View File

@@ -1,5 +1,7 @@
// In renderer process (web page).
const {ipcRenderer} = require("electron");
const {
ipcRenderer
} = require("electron");
class Blockchain {
constructor() {
@@ -170,6 +172,7 @@ class Blockchain {
} else {
rendererData.sumBalance = parseFloat(rendererData.sumBalance).toFixed(2);
clbSuccess(rendererData);
document.getElementById('colorbal').style.color = "#49e449";
}
});
}