First implementation of color based on wallet value & Clean up
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user