Skip to content

Commit

Permalink
r0b08x [chore] 4/1/2024, 6:53:06 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Apr 1, 2024
1 parent ef57e6b commit a9aa6b0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ https://corifeus.com/redis-ui


---
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.209
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.210



Expand Down Expand Up @@ -77,7 +77,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-REDIS-UI-MATERIAL**](https://corifeus.com/redis-ui-material) Build v2024.4.209
[**P3X-REDIS-UI-MATERIAL**](https://corifeus.com/redis-ui-material) Build v2024.4.210

[![NPM](https://img.shields.io/npm/v/p3x-redis-ui-material.svg)](https://www.npmjs.com/package/p3x-redis-ui-material) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-redis-ui-material",
"version": "2024.4.209",
"version": "2024.4.210",
"description": "💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io",
"corifeus": {
"icon": "fas fa-database",
Expand Down
4 changes: 4 additions & 0 deletions src/angular/dialog/p3xr-dialog-key-new-or-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ p3xr.ng.factory('p3xrDialogKeyNewOrSet', function (p3xrCommon, $mdDialog, p3xrSo
return;
}
try {
p3xr.ui.overlay.show()

const response = await p3xrSocket.request({
action: 'key-new-or-set',
payload: {
Expand All @@ -172,6 +174,8 @@ p3xr.ng.factory('p3xrDialogKeyNewOrSet', function (p3xrCommon, $mdDialog, p3xrSo
} catch (e) {
//reject(e)
p3xrCommon.generalHandleError(e)
} finally {
p3xr.ui.overlay.hide()
}

}
Expand Down
10 changes: 8 additions & 2 deletions src/angular/pages/main/key/p3xr-main-key-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ p3xr.ng.component('p3xrMainKeyString', {
await p3xrCommon.confirm({
message: p3xr.strings.confirm.uploadBuffer
})


p3xr.ui.overlay.show()

const response = await p3xrSocket.request({
action: 'key-set',
payload: {
Expand All @@ -67,17 +71,17 @@ p3xr.ng.component('p3xrMainKeyString', {
}
})
p3xrCommon.toast(p3xr.strings.confirm.uploadBufferDoneAndSave)
$rootScope.$broadcast('p3xr-refresh-key');
window['gtag']('config', p3xr.settings.googleAnalytics,
{
'page_path': '/key-set'
}
);
$rootScope.$broadcast('p3xr-refresh-key');

} catch (e) {
p3xrCommon.generalHandleError(e)
} finally {

p3xr.ui.overlay.hide()
}

};
Expand Down Expand Up @@ -163,6 +167,7 @@ p3xr.ng.component('p3xrMainKeyString', {
}

try {
p3xr.ui.overlay.show()
const request = {
action: 'key-set',
payload: {
Expand All @@ -184,6 +189,7 @@ p3xr.ng.component('p3xrMainKeyString', {
} catch (e) {
p3xrCommon.generalHandleError(e)
} finally {
p3xr.ui.overlay.hide()
$rootScope.$broadcast('p3xr-refresh-key');
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/angular/pages/main/p3xr-main-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ p3xr.ng.component('p3xrMainKey', {
// message: p3xr.strings.intention.getKey
//})
this.loading = true

setTimeout(() => {
$scope.$digest();
})

//const type = p3xr.state.keysInfo[$stateParams.key].type
//console.warn('$stateParams.key', $stateParams.key)
const response = await p3xrSocket.request({
Expand Down Expand Up @@ -199,6 +204,7 @@ p3xr.ng.component('p3xrMainKey', {

$timeout(() => {
this.loading = false
$scope.$digest()
}, p3xr.settings.debounce)

}
Expand Down

0 comments on commit a9aa6b0

Please sign in to comment.