Dashboard - Hide Short URL Option (#89338)

* fix typo from sub-feature privileges
This commit is contained in:
Devon Thomson 2021-01-27 13:06:22 -05:00 committed by GitHub
parent 42a9490e7b
commit 96e4bdc8ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ export function ShowShareModal({
share.toggleShareContextMenu({
anchorElement,
allowEmbed: true,
allowShortUrl: !dashboardCapabilities.hideWriteControls || dashboardCapabilities.createShortUrl,
allowShortUrl: dashboardCapabilities.createShortUrl,
shareableUrl: setStateToKbnUrl(
'_a',
dashboardStateManager.getAppState(),