Skip to content

Commit 646ad72

Browse files
committed
add validated to users add more sorts
1 parent c25d3a4 commit 646ad72

5 files changed

Lines changed: 16 additions & 6 deletions

File tree

OpenFlow/src/public/Users.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ <h1 translate lib="web">users</h1>
2121
<th ng-click="ctrl.ToggleOrder('username')"><b translate lib="web">username</b></th>
2222
<th ng-click="ctrl.ToggleOrder('_created')"><b translate lib="web">created</b></th>
2323
<th ng-click="ctrl.ToggleOrder('lastseen')"><b translate lib="web">lastseen</b></th>
24+
<th ng-show="ctrl.WebSocketClientService.stripe_api_key != ''" ng-click="ctrl.ToggleOrder('_hasbilling')">
25+
<i class="fas fa-money-bill-wave"></i>
26+
</th>
2427
<th></th>
25-
<th></th>
28+
<th ng-show="ctrl.WebSocketClientService.validate_user_form != ''" ng-click="ctrl.ToggleOrder('validated')">
29+
<i class="fas fa-check"></i>
30+
</th>
2631
<th></th>
2732
<th></th>
2833
</tr>
@@ -42,15 +47,18 @@ <h1 translate lib="web">users</h1>
4247
chart-labels="model.chart.labels" chart-series="model.chart.series" height="40px" width="200">
4348
</canvas>
4449
</td> -->
45-
<td class="btn-cell">
50+
<td class="btn-cell" ng-show="ctrl.WebSocketClientService.stripe_api_key != ''">
4651
<a ng-href="#/Payment/{{model._id}}" class="table-btn"
47-
ng-show="menuctrl.WebSocketClientService.stripe_api_key != '' && menuctrl.hasrole('admins') && model._hasbilling == true">
52+
ng-show="menuctrl.hasrole('admins') && model._hasbilling == true">
4853
<i class="fas fa-money-bill-wave"></i></a>
4954
</td>
5055
<td class="btn-cell">
5156
<a ng-href ng-click="ctrl.Impersonate(model)" ng-show="model._id != ctrl.WebSocketClientService.user._id"><i
5257
class="fas fa-user-secret" style="color: #007bff;"></i></a>
5358
</td>
59+
<td class="btn-cell" ng-show="ctrl.WebSocketClientService.validate_user_form != ''">
60+
<i ng-show="model.validated" class="fas fa-check"></i></th>
61+
</td>
5462
<td class="btn-cell">
5563
<a ng-href="#/User/{{model._id}}"><i class="az-edit"></i></a>
5664
</td>

OpenFlow/src/public/WebSocketClientService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export class WebSocketClientService {
3232
this.nodered_domain_schema = data.nodered_domain_schema;
3333
this.websocket_package_size = data.websocket_package_size;
3434
this.stripe_api_key = data.stripe_api_key;
35+
this.validate_user_form = data.validate_user_form;
3536

3637
if (WebSocketClient.instance == null) {
3738
const cli: WebSocketClient = new WebSocketClient(this.logger, wsurl);
@@ -151,6 +152,7 @@ export class WebSocketClientService {
151152
public nodered_domain_schema: string = "";
152153
public websocket_package_size: number = 4096;
153154
public stripe_api_key: string = "";
155+
public validate_user_form: string = "";
154156

155157
getJSON(url: string, callback: any): void {
156158
const xhr: XMLHttpRequest = new XMLHttpRequest();

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/nodered",
3-
"version": "1.1.156",
3+
"version": "1.1.157",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.156
1+
1.1.157

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/openflow",
3-
"version": "1.1.156",
3+
"version": "1.1.157",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)