Remove export archive from plugin header (#2779)

* Remove export archive from plugin header

* Update snapshot
This commit is contained in:
Miguel de la Cruz 2022-04-13 17:52:11 +02:00 committed by GitHub
parent 4fb14bc653
commit 59b387035f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 84 deletions

View file

@ -115,11 +115,6 @@ func (a *API) handleArchiveExportTeam(w http.ResponseWriter, r *http.Request) {
a.errorResponse(w, r.URL.Path, http.StatusNotImplemented, "not permitted in plugin mode", nil)
}
if a.MattermostAuth {
a.errorResponse(w, r.URL.Path, http.StatusNotImplemented, "", nil)
return
}
vars := mux.Vars(r)
teamID := vars["teamID"]

View file

@ -216,29 +216,6 @@ exports[`components/sidebar/GlobalHeaderSettingsMenu imports menu open should ma
</div>
</div>
</div>
<div>
<div
aria-label="Export archive"
class="MenuOption TextOption menu-option"
role="button"
>
<div
class=""
>
<div
class="noicon"
/>
</div>
<div
class="menu-name"
>
Export archive
</div>
<div
class="noicon"
/>
</div>
</div>
<div>
<div
class="MenuOption SubMenuOption menu-option open-left"
@ -395,29 +372,6 @@ exports[`components/sidebar/GlobalHeaderSettingsMenu languages menu open should
</div>
</div>
</div>
<div>
<div
aria-label="Export archive"
class="MenuOption TextOption menu-option"
role="button"
>
<div
class=""
>
<div
class="noicon"
/>
</div>
<div
class="menu-name"
>
Export archive
</div>
<div
class="noicon"
/>
</div>
</div>
<div>
<div
class="MenuOption SubMenuOption menu-option open-left menu-option-active"
@ -999,29 +953,6 @@ exports[`components/sidebar/GlobalHeaderSettingsMenu settings menu open should m
</div>
</div>
</div>
<div>
<div
aria-label="Export archive"
class="MenuOption TextOption menu-option"
role="button"
>
<div
class=""
>
<div
class="noicon"
/>
</div>
<div
class="menu-name"
>
Export archive
</div>
<div
class="noicon"
/>
</div>
</div>
<div>
<div
class="MenuOption SubMenuOption menu-option open-left"

View file

@ -72,16 +72,6 @@ const GlobalHeaderSettingsMenu = (props: Props) => {
))
}
</Menu.SubMenu>
<Menu.Text
id='export'
name={intl.formatMessage({id: 'Sidebar.export-archive', defaultMessage: 'Export archive'})}
onClick={async () => {
if (currentTeam) {
TelemetryClient.trackEvent(TelemetryCategory, TelemetryActions.ExportArchive)
Archiver.exportFullArchive(currentTeam.id)
}
}}
/>
<Menu.SubMenu
id='lang'
name={intl.formatMessage({id: 'Sidebar.set-language', defaultMessage: 'Set language'})}