Skip to content

Commit

Permalink
r0b08x [chore] 4/1/2024, 5:23:57 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Apr 1, 2024
1 parent 40f506e commit bb689a1
Show file tree
Hide file tree
Showing 6 changed files with 18 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.213
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.214



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.213
[**P3X-REDIS-UI-MATERIAL**](https://corifeus.com/redis-ui-material) Build v2024.4.214

[![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.213",
"version": "2024.4.214",
"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
1 change: 1 addition & 0 deletions src/angular/factory/p3xr-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ p3xr.ng.factory('p3xrCommon', function ($mdToast, $mdDialog, $mdColors, $rootSco
error.message = p3xr.strings.code[error.message]
}

p3xr.settings.handleConnectionIsClosed (error, $rootScope)

result.alert({
title: p3xr.strings.title.error,
Expand Down
8 changes: 6 additions & 2 deletions src/angular/pages/main/p3xr-main-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ p3xr.ng.component('p3xrMainKey', {
} catch (e) {
hadError = e
console.error(e)
p3xrCommon.alert(p3xr.strings.label.unableToLoadKey({ key: $stateParams.key }))
if (!p3xr.settings.handleConnectionIsClosed(e, $rootScope)) {
p3xrCommon.alert(p3xr.strings.label.unableToLoadKey({ key: $stateParams.key }))
} else{
p3xrCommon.alert(e.message)
}
//p3xrCommon.generalHandleError(e)
} finally {
//p3xr.ui.overlay.hide()
Expand All @@ -191,7 +195,7 @@ p3xr.ng.component('p3xrMainKey', {
$stateParams.resize()
}

$timeout(() => {
$timeout(() => {
this.loading = false
$scope.$digest()
}, p3xr.settings.debounce)
Expand Down
7 changes: 7 additions & 0 deletions src/core/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ p3xr.settings = {
}
return language
},
handleConnectionIsClosed: (error, $rootScope) => {
if (error?.message === 'Connection is closed.') {
$rootScope.$broadcast('p3xr-disconnect')
return true
}
return false
},
maxLightKeysCount: 110000,
// maxLightKeysCount: 1,
resizeMinWidth: 350,
Expand Down
1 change: 1 addition & 0 deletions src/core/state.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
p3xr.state = {

treeDividers: [],
donated: false,
theme: undefined,
Expand Down

0 comments on commit bb689a1

Please sign in to comment.