3
0

Add slug to namespace clone if it exists

This commit is contained in:
Jože Fortun 2024-03-08 15:20:03 +01:00
parent 29f79579a5
commit a22b17fce8

View File

@ -647,7 +647,7 @@ export default {
let { name, slug } = this.namespace
name = `${name} (${this.$t('cloneSuffix')})`
slug = ''
slug = slug ? `${slug}_${this.$t('cloneSuffix')}` : ''
return this.cloneNamespace({ ...this.namespace, name, slug }).then(({ namespaceID }) => {
this.$route.params.namespaceID = namespaceID