Skip to content

Commit

Permalink
r0b08x [chore] 3/25/2024, 12:15:39 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Mar 25, 2024
1 parent ae5178e commit e4c1b04
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 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.161
# 💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io v2024.4.163



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

[![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.161",
"version": "2024.4.163",
"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
3 changes: 1 addition & 2 deletions src/angular/dialog/p3xr-dialog-key-new-or-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,13 @@ p3xr.ng.factory('p3xrDialogKeyNewOrSet', function (p3xrCommon, $mdDialog, p3xrSo
return;
}
try {
const cloneDeep = require('lodash/cloneDeep')
const response = await p3xrSocket.request({
action: 'key-new-or-set',
payload: {
type: options.type,
originalValue: options.hasOwnProperty('model') ? options.model.value : undefined,
originalHashKey: options.hasOwnProperty('model') ? options.model.hashKey : undefined,
model: cloneDeep($scope.model)
model: p3xr.clone($scope.model)
},
})
window['gtag']('config', p3xr.settings.googleAnalytics,
Expand Down
2 changes: 1 addition & 1 deletion src/angular/pages/main/key/p3xr-main-key-string.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<div>
<md-switch ng-model="$ctrl.validateJson" class="md-accent" style="float: right;" ng-if="$root.p3xr.state.connection.readonly !== true">
{{ $root.p3xr.strings.label.validateJson }}
</md-switch>
</md-switch>
</div>
<div>
<md-button class="md-button md-raised md-warn" ng-click="$ctrl.cancelEdit()" md-autofocus>
Expand Down
24 changes: 12 additions & 12 deletions src/angular/pages/main/key/p3xr-main-key-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ p3xr.ng.component('p3xrMainKeyString', {
let originalValue
this.edit = () => {
if (this.p3xrValue.length < p3xr.settings.maxValueAsBuffer ) {
originalValue = angular.copy(this.p3xrValue)
originalValue = p3xr.clone(this.p3xrValue)
this.buffer = false
} else {
originalValue = angular.copy(this.p3xrValueBuffer)
originalValue = p3xr.clone(this.p3xrValueBuffer)
this.buffer = true
}
this.editable = true
Expand All @@ -117,18 +117,18 @@ p3xr.ng.component('p3xrMainKeyString', {
this.validateJson = false

this.save = async () => {
try {
if (this.validateJson === true) {
try {
JSON.parse(this.buffer ? this.p3xrValueBuffer : this.p3xrValue)
} catch (e) {
p3xrCommon.toast({
message: p3xr.strings.label.jsonViewNotParsable
})
return;
}
if (this.validateJson === true) {
try {
JSON.parse(this.buffer ? this.p3xrValueBuffer : this.p3xrValue)
} catch (e) {
p3xrCommon.toast({
message: p3xr.strings.label.jsonViewNotParsable
})
return
}
}

try {
const response = await p3xrSocket.request({
action: 'key-set',
payload: {
Expand Down

0 comments on commit e4c1b04

Please sign in to comment.