custom trigger: rewrite / subdir to empty string
This commit is contained in:
parent
f55c478a30
commit
818b76d825
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ angular.module('quay').directive('triggerSetupCustom', function() {
|
|||
});
|
||||
|
||||
$scope.$watch('state.subdir', function(subdir) {
|
||||
// Code elsewhere assumes root is empty string.
|
||||
if (subdir === '/') {
|
||||
subdir = '';
|
||||
}
|
||||
|
||||
$scope.trigger['config']['subdir'] = subdir;
|
||||
$scope.trigger.$ready = subdir != null;
|
||||
});
|
||||
|
|
Reference in a new issue