mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
hide AOS when in trashcan
This commit is contained in:
parent
9157d50974
commit
ca335bd606
@ -6,6 +6,11 @@ export function canOpenWithOffice(
|
|||||||
context: RuleContext,
|
context: RuleContext,
|
||||||
...args: RuleParameter[]
|
...args: RuleParameter[]
|
||||||
): boolean {
|
): boolean {
|
||||||
|
const { url } = context.navigation;
|
||||||
|
if (url && url.startsWith('/trashcan')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// todo: needs to have typed access via SDK (1.8)
|
// todo: needs to have typed access via SDK (1.8)
|
||||||
const auth: AuthenticationService = (<any>context).auth;
|
const auth: AuthenticationService = (<any>context).auth;
|
||||||
if (auth && auth.isOauth()) {
|
if (auth && auth.isOauth()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user