summaryrefslogtreecommitdiffstats
path: root/core/js/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-12-07 16:53:56 +0100
committerVincent Petry <pvince81@owncloud.com>2015-12-07 16:53:56 +0100
commit6735005be09840431823afb281ad183e9635d4cc (patch)
tree1188c0ed731ab4855e949b02dee8bfd64caa57ea /core/js/tests
parente4c5bf790d670eceac01f2e8c7750182b17123f3 (diff)
downloadnextcloud-server-6735005be09840431823afb281ad183e9635d4cc.tar.gz
nextcloud-server-6735005be09840431823afb281ad183e9635d4cc.zip
Fix duplicate bogus share field when link sharing is not allowed
Whenever link share is not allowed, it was outputting a bogus sharing field which name would conflict with the regular sharing field. This fix makes sure that the bogus sharing field with "Resharing not allowed" message only appears when triggered by removed share permissions.
Diffstat (limited to 'core/js/tests')
-rw-r--r--core/js/tests/specs/sharedialogviewSpec.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/js/tests/specs/sharedialogviewSpec.js b/core/js/tests/specs/sharedialogviewSpec.js
index 6d5243b0e86..bfd3d987866 100644
--- a/core/js/tests/specs/sharedialogviewSpec.js
+++ b/core/js/tests/specs/sharedialogviewSpec.js
@@ -218,6 +218,7 @@ describe('OC.Share.ShareDialogView', function() {
dialog.render();
expect(dialog.$el.find('.linkCheckbox').length).toEqual(0);
+ expect(dialog.$el.find('.shareWithField').length).toEqual(1);
});
it('shows populated link share when a link share exists', function() {
// this is how the OC.Share class does it...