mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 23:16:22 +02:00
Update UI library dependencies (#2191)
* Update UI library dependencies * change to node v14 * update js-yaml load and dump function
This commit is contained in:
@@ -71,8 +71,8 @@ edit
|
||||
|
||||
this.updateEditable = e => {
|
||||
if (this.refs.changedProperties.value) {
|
||||
this.editablePropertiesPreview = yamlParser.safeDump(
|
||||
yamlParser.safeLoad(
|
||||
this.editablePropertiesPreview = yamlParser.dump(
|
||||
yamlParser.load(
|
||||
this.refs.changedProperties.value,
|
||||
),
|
||||
)
|
||||
@@ -85,7 +85,7 @@ edit
|
||||
this.saveMessage = ''
|
||||
|
||||
jsonPayload = JSON.stringify(
|
||||
yamlParser.safeLoad(
|
||||
yamlParser.load(
|
||||
this.refs.changedProperties.value,
|
||||
),
|
||||
)
|
||||
@@ -129,7 +129,7 @@ edit
|
||||
if (i.metadata.managedFields) { delete i.metadata.managedFields }
|
||||
|
||||
this.update()
|
||||
this.refs.yamlNice.innerHTML = yamlParser.safeDump(i.postgresql, {sortKeys: true})
|
||||
this.refs.yamlNice.innerHTML = yamlParser.dump(i.postgresql, {sortKeys: true})
|
||||
|
||||
// Output data:
|
||||
const o = this.editableProperties = { spec: {} }
|
||||
@@ -192,7 +192,7 @@ edit
|
||||
|
||||
this.editablePropertiesText = (
|
||||
yamlParser
|
||||
.safeDump(this.editableProperties)
|
||||
.dump(this.editableProperties)
|
||||
.slice(0, -1)
|
||||
)
|
||||
this.editablePropertiesPreview = this.editablePropertiesText
|
||||
|
||||
@@ -793,7 +793,7 @@ new
|
||||
}
|
||||
|
||||
this.requestCreate = e => {
|
||||
jsonPayload = JSON.stringify(yamlParser.safeLoad(this.getYAML()))
|
||||
jsonPayload = JSON.stringify(yamlParser.load(this.getYAML()))
|
||||
|
||||
this.creating = true
|
||||
this.update()
|
||||
|
||||
@@ -220,7 +220,7 @@ postgresql
|
||||
delete manifest.status
|
||||
|
||||
if (this.refs.yamlNice) {
|
||||
this.refs.yamlNice.innerHTML = yamlParser.safeDump(
|
||||
this.refs.yamlNice.innerHTML = yamlParser.dump(
|
||||
this.progress.postgresqlManifest,
|
||||
{
|
||||
sortKeys: true,
|
||||
|
||||
Reference in New Issue
Block a user