diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-07 20:29:51 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-08 09:44:51 +0200 |
commit | 278c281cc9c03ad060ac6a91784058066411c7a8 (patch) | |
tree | d82e5fda75a9811bc2e280f3933cc36a99ff9e4b /core/js/tests | |
parent | a3800a6810fca68eff1789dc21488389bf22108a (diff) | |
download | nextcloud-server-278c281cc9c03ad060ac6a91784058066411c7a8.tar.gz nextcloud-server-278c281cc9c03ad060ac6a91784058066411c7a8.zip |
Deprecate oc_current_user, fix usage and move currentUser to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/tests')
-rw-r--r-- | core/js/tests/specs/sharedialogshareelistview.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/js/tests/specs/sharedialogshareelistview.js b/core/js/tests/specs/sharedialogshareelistview.js index 7f25825bf7a..7a679603ae8 100644 --- a/core/js/tests/specs/sharedialogshareelistview.js +++ b/core/js/tests/specs/sharedialogshareelistview.js @@ -98,7 +98,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user1', share_with_displayname: 'User One', - uid_owner: oc_current_user, + uid_owner: OC.getCurrentUser().uid, itemType: 'file' }]); listView.render(); @@ -113,7 +113,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user1', share_with_displayname: 'User One', - uid_owner: oc_current_user, + uid_owner: OC.getCurrentUser().uid, itemType: 'file' }]); listView.render(); @@ -128,7 +128,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user1', share_with_displayname: 'User One', - uid_owner: oc_current_user, + uid_owner: OC.getCurrentUser().uid, itemType: 'folder' }]); shareModel.set('itemType', 'folder'); @@ -144,7 +144,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user _.@-\'', share_with_displayname: 'User One', - uid_owner: oc_current_user, + uid_owner: OC.getCurrentUser().uid, itemType: 'folder' }]); shareModel.set('itemType', 'folder'); @@ -160,7 +160,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user1', share_with_displayname: 'User One', - uid_owner: oc_current_user, + uid_owner: OC.getCurrentUser().uid, itemType: 'folder' }]); shareModel.set('itemType', 'folder'); @@ -176,7 +176,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user _.@-\'', share_with_displayname: 'User One', - uid_owner: oc_current_user, + uid_owner: OC.getCurrentUser().uid, itemType: 'folder' }]); shareModel.set('itemType', 'folder'); @@ -193,7 +193,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user1', share_with_displayname: 'User One', - uid_owner: oc_current_user, + uid_owner: OC.getCurrentUser().uid, }]); shareModel.set('itemType', 'folder'); listView.render(); @@ -210,7 +210,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user1', share_with_displayname: 'User One', - uid_owner: oc_current_user, + uid_owner: OC.getCurrentUser().uid, itemType: 'folder' }]); shareModel.set('itemType', 'folder'); @@ -228,7 +228,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user1', share_with_displayname: 'User One', - uid_owner: oc_current_user, + uid_owner: OC.getCurrentUser().uid, itemType: 'folder' }]); shareModel.set('itemType', 'folder'); |