Merge pull request #16454 from nextcloud/bugfix/noid/sharelink-shouldnt-open-menu-automatically
Dont show menu automatically when share link is clicked
This commit is contained in:
commit
2fdf946dae
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -243,11 +243,6 @@
|
|||
if (newShareId) {
|
||||
var shares = self.$el.find('li[data-share-id]');
|
||||
var $newShare = self.$el.find('li[data-share-id="'+newShareId+'"]');
|
||||
// only open the menu by default if this is the first share
|
||||
if ($newShare && shares.length === 1) {
|
||||
var $menu = $newShare.find('.popovermenu');
|
||||
OC.showMenu(null, $menu);
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function() {
|
||||
|
|
|
@ -249,14 +249,6 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
|
|||
$this->actor->find(FileListContext::shareActionForFile(FilesAppContext::currentSectionMainView(), $fileName), 10)->click();
|
||||
|
||||
$this->actor->find(self::shareLinkAddNewButton(), 5)->click();
|
||||
|
||||
// Wait until the menu was opened after the share creation to continue.
|
||||
if (!WaitFor::elementToBeEventuallyShown(
|
||||
$this->actor,
|
||||
self::shareLinkMenu(),
|
||||
$timeout = 5 * $this->actor->getFindTimeoutMultiplier())) {
|
||||
PHPUnit_Framework_Assert::fail("The share link menu is not open yet after $timeout seconds");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue