Skip to content

Commit b8f6a81

Browse files
authored
Merge pull request #101 from lihsai0/fix/code-doc-previewer-lost-current-info
fix code, doc prewviewer lost current info
2 parents 664b4bd + be269a0 commit b8f6a81

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/renderer/main/files/modals/preview/code-modal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ webModule
4949
) {
5050
const T = $translate.instant;
5151
angular.extend($scope, {
52+
currentInfo: currentInfo,
5253
bucketInfo: bucketInfo,
5354
objectInfo: objectInfo,
5455
fileType: fileType,

src/renderer/main/files/modals/preview/doc-modal.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ const DOC_MODAL_CONTROLLER_NAME = 'docModalCtrl'
77
webModule
88
.controller(DOC_MODAL_CONTROLLER_NAME, ['$scope',
99
'$uibModalInstance',
10+
'currentInfo',
1011
'bucketInfo',
1112
'objectInfo',
1213
'fileType',
13-
function ($scope, $modalInstance, bucketInfo, objectInfo, fileType) {
14+
function ($scope, $modalInstance, currentInfo, bucketInfo, objectInfo, fileType) {
1415

1516
angular.extend($scope, {
17+
currentInfo: currentInfo,
1618
bucketInfo: bucketInfo,
1719
objectInfo: objectInfo,
1820
fileType: fileType,

0 commit comments

Comments
 (0)