diff --git a/demo-shell-ng2/app/app.component.css b/demo-shell-ng2/app/app.component.css index 5ff84bf111..00e49cd0b7 100644 --- a/demo-shell-ng2/app/app.component.css +++ b/demo-shell-ng2/app/app.component.css @@ -1,12 +1,12 @@ @media screen and (max-width: 1024px) { .mdl-layout__header { - display: block; + display: block; } } @media screen and (max-width: 1024px) { .mdl-layout__header { - display: block; + display: block; } } @@ -25,3 +25,11 @@ .hide { display: none !important; } + +.mdl-navigation__link { + cursor: pointer; +} + +.mdl-navigation__link label { + cursor: pointer; +} diff --git a/demo-shell-ng2/app/app.component.html b/demo-shell-ng2/app/app.component.html index 036b9226e6..9fba4758d4 100644 --- a/demo-shell-ng2/app/app.component.html +++ b/demo-shell-ng2/app/app.component.html @@ -62,6 +62,7 @@ Activiti Webscript Tag + About Settings diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts index d382b24916..7a07df8dd3 100644 --- a/demo-shell-ng2/app/app.component.ts +++ b/demo-shell-ng2/app/app.component.ts @@ -78,20 +78,24 @@ export class AppComponent { this.auth.logout() .subscribe( () => { - this.router.navigate(['/login']); - this.hideDrawer(); + this.navigateToLogin(); }, - ($event: any) => { - if ($event && $event.response && $event.response.status === 401) { - this.router.navigate(['/login']); - this.hideDrawer(); + (error: any) => { + if (error && error.response && error.response.status === 401) { + this.navigateToLogin(); } else { - console.error('An unknown error occurred while logging out', $event); + console.error('An unknown error occurred while logging out', error); + this.navigateToLogin(); } } ); } + navigateToLogin(){ + this.router.navigate(['/login']); + this.hideDrawer(); + } + onToggleSearch(event) { let expandedHeaderClass = 'header-search-expanded', header = document.querySelector('header'); diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.css b/demo-shell-ng2/app/components/activiti/activiti-demo.component.css index a3615db4f2..483a152276 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.css +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.css @@ -10,7 +10,7 @@ .task-column { background-color: #f5f5f5; padding: 10px 10px 10px 10px; - border: solid 2px rgb(31, 188, 210); + border-right: solid 2px rgb(144, 143, 143); } .list-column { diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html index 0d08e2376e..32044e462e 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html @@ -19,13 +19,15 @@