#176: Default tag when creating a document with a tag opened

This commit is contained in:
Benjamin Gamard 2018-03-15 11:55:03 +01:00
parent 16215dde3b
commit bf37c5cb51

View File

@ -62,6 +62,10 @@ angular.module('docs').controller('DocumentEdit', function($rootScope, $scope, $
language: language language: language
}; };
if ($scope.navigatedTag) {
$scope.document.tags.push($scope.navigatedTag);
}
$scope.newFiles = []; $scope.newFiles = [];
if ($scope.form) { if ($scope.form) {