hide AOS when in trashcan

This commit is contained in:
Denys Vuika 2019-03-07 16:40:07 +00:00
parent 9157d50974
commit ca335bd606

View File

@ -6,6 +6,11 @@ export function canOpenWithOffice(
context: RuleContext,
...args: RuleParameter[]
): boolean {
const { url } = context.navigation;
if (url && url.startsWith('/trashcan')) {
return false;
}
// todo: needs to have typed access via SDK (1.8)
const auth: AuthenticationService = (<any>context).auth;
if (auth && auth.isOauth()) {