mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
feat(stack): prevent stack duplication if name already used (#4740)
* feat(stack): prevent stack duplication if name already used * refacto(stack): deduplicate functions and rename variables * refacto(stack): add a generic helper for findDeepAll function * fix(templates): remove forgotten conflict markers
This commit is contained in:
parent
f03cf2a6e4
commit
36fcbb9e18
10 changed files with 109 additions and 8 deletions
|
@ -24,7 +24,7 @@ angular.module('portainer.app').controller('StackDuplicationFormController', [
|
|||
}
|
||||
|
||||
function isFormValidForDuplication() {
|
||||
return isFormValidForMigration() && ctrl.formValues.newName;
|
||||
return isFormValidForMigration() && ctrl.formValues.newName && !ctrl.yamlError;
|
||||
}
|
||||
|
||||
function duplicateStack() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue