Remove handle/slug on resource create
This commit is contained in:
@@ -133,7 +133,7 @@ export default {
|
||||
},
|
||||
|
||||
handleState () {
|
||||
return this.connection.handle ? handle.handleState(this.connection.handle) : false
|
||||
return handle.handleState(this.connection.handle)
|
||||
},
|
||||
|
||||
saveDisabled () {
|
||||
|
||||
@@ -445,7 +445,7 @@ export default {
|
||||
|
||||
if (this.isClone) {
|
||||
this.namespace.name = `${ns.name} (${this.$t('cloneSuffix')})`
|
||||
this.namespace.slug = `${ns.slug}_${this.$t('cloneSuffix')}`
|
||||
this.namespace.slug = ns.slug ? `${ns.slug}_${this.$t('cloneSuffix')}` : ''
|
||||
}
|
||||
|
||||
this.fetchApplication()
|
||||
|
||||
@@ -288,12 +288,6 @@ export default class Compose {
|
||||
if (!namespaceID) {
|
||||
throw Error('field namespaceID is empty')
|
||||
}
|
||||
if (!name) {
|
||||
throw Error('field name is empty')
|
||||
}
|
||||
if (!slug) {
|
||||
throw Error('field slug is empty')
|
||||
}
|
||||
const cfg: AxiosRequestConfig = {
|
||||
...extra,
|
||||
method: 'post',
|
||||
@@ -387,9 +381,6 @@ export default class Compose {
|
||||
if (!name) {
|
||||
throw Error('field name is empty')
|
||||
}
|
||||
if (!slug) {
|
||||
throw Error('field slug is empty')
|
||||
}
|
||||
const cfg: AxiosRequestConfig = {
|
||||
...extra,
|
||||
method: 'post',
|
||||
|
||||
@@ -1745,9 +1745,6 @@ export default class System {
|
||||
meta,
|
||||
config,
|
||||
} = (a as KV) || {}
|
||||
if (!handle) {
|
||||
throw Error('field handle is empty')
|
||||
}
|
||||
if (!type) {
|
||||
throw Error('field type is empty')
|
||||
}
|
||||
@@ -1787,9 +1784,6 @@ export default class System {
|
||||
if (!connectionID) {
|
||||
throw Error('field connectionID is empty')
|
||||
}
|
||||
if (!handle) {
|
||||
throw Error('field handle is empty')
|
||||
}
|
||||
if (!type) {
|
||||
throw Error('field type is empty')
|
||||
}
|
||||
@@ -1986,9 +1980,6 @@ export default class System {
|
||||
if (!applicationID) {
|
||||
throw Error('field applicationID is empty')
|
||||
}
|
||||
if (!name) {
|
||||
throw Error('field name is empty')
|
||||
}
|
||||
const cfg: AxiosRequestConfig = {
|
||||
...extra,
|
||||
method: 'put',
|
||||
|
||||
@@ -13,7 +13,7 @@ if (process.argv.length >= 3) {
|
||||
// Assume "standard" dev environment
|
||||
// where corteza server source could be found
|
||||
// next to this lib
|
||||
path = '../corteza-server'
|
||||
path = '../../server'
|
||||
}
|
||||
|
||||
const dst = `${__dirname}/../../src/api-clients`
|
||||
|
||||
@@ -153,7 +153,7 @@ edit:
|
||||
import: 'Import chart(s):'
|
||||
newLabel: 'Create a new chart:'
|
||||
name: Chart name *
|
||||
handle: Handle *
|
||||
handle: Handle
|
||||
notification:
|
||||
loadFailed: Could not load chart
|
||||
saveFailed: Could not save this chart
|
||||
|
||||
@@ -41,7 +41,7 @@ searchPlaceholder: Type here to search among all namespaces...
|
||||
setPermissions: Set namespace permissions
|
||||
slug:
|
||||
description: The short name will be used in the URL
|
||||
label: Short name *
|
||||
label: Short name
|
||||
placeholder: Enter a short name for the namespace
|
||||
invalid-handle-characters: Should be at least 2 characters long and start with a letter. Can contain only letters, numbers, dashes, underscores and dots
|
||||
subtitle:
|
||||
|
||||
@@ -5,7 +5,7 @@ error: Error
|
||||
error-expression: Error message (expression)
|
||||
export: Export
|
||||
general: General
|
||||
handle: Handle *
|
||||
handle: Handle
|
||||
import:
|
||||
json: Import JSON
|
||||
label: Import
|
||||
|
||||
Reference in New Issue
Block a user