Skip to content

Commit

Permalink
modal debug: disable animations globally
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Allien committed Jan 24, 2018
1 parent c55c653 commit cb92208
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/app/app.module.ts
@@ -1,5 +1,5 @@
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';

import { CoreModule } from './core/core.module';
Expand All @@ -18,7 +18,7 @@ import { routing } from './app.routing';
],
imports: [
BrowserModule,
BrowserAnimationsModule,
NoopAnimationsModule,
routing,
/* own */
CoreModule.forRoot(),
Expand Down
4 changes: 2 additions & 2 deletions src/app/modals/createwallet/createwallet.component.spec.ts
@@ -1,5 +1,5 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { MatDialogRef } from '@angular/material';

import { ModalsModule } from '../modals.module';
Expand All @@ -18,7 +18,7 @@ describe('CreateWalletComponent', () => {

TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
NoopAnimationsModule,
SharedModule,
CoreModule.forRoot(),
ModalsModule,
Expand Down
@@ -1,6 +1,6 @@
/* modules (deps) */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { MatDialogRef, MatIconModule } from '@angular/material';

import { ModalsModule, PassphraseService } from '../../modals.module';
Expand Down Expand Up @@ -29,7 +29,7 @@ describe('PassphraseComponent', () => {
CoreUiModule.forRoot(),
ModalsModule.forRoot(),
/* deps */
BrowserAnimationsModule,
NoopAnimationsModule,
MatIconModule,
],
providers: [
Expand Down
4 changes: 2 additions & 2 deletions src/app/modals/modals.module.ts
Expand Up @@ -2,7 +2,7 @@ import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { ClipboardModule } from 'ngx-clipboard';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

import { MaterialModule } from '../core-ui/material/material.module';

Expand Down Expand Up @@ -33,7 +33,7 @@ import { DaemonConnectionComponent } from './shared/daemon-connection/daemon-con
imports: [
CommonModule,
FormsModule,
BrowserAnimationsModule,
NoopAnimationsModule,
ClipboardModule,
/* own */
MaterialModule
Expand Down
@@ -1,5 +1,5 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

import { SharedModule } from '../../shared/shared.module';
import { WalletModule } from '../../wallet/wallet.module';
Expand All @@ -22,7 +22,7 @@ describe('AddressBookComponent', () => {
WalletModule.forRoot(),
CoreModule.forRoot(),
CoreUiModule.forRoot(),
BrowserAnimationsModule
NoopAnimationsModule
],
declarations: [ ],
providers: [ ModalsService ]
Expand Down
@@ -1,5 +1,5 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { MatDialogRef } from '@angular/material';

import { SharedModule } from '../../shared/shared.module';
Expand All @@ -20,7 +20,7 @@ describe('AddressLookupComponent', () => {
SharedModule,
RpcModule.forRoot(),
WalletModule,
BrowserAnimationsModule
NoopAnimationsModule
],
providers: [
IpcService,
Expand Down
4 changes: 2 additions & 2 deletions src/app/wallet/wallet/history/history.component.spec.ts
@@ -1,5 +1,5 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

import { SharedModule } from '../../shared/shared.module';
import { WalletModule } from '../../wallet/wallet.module';
Expand All @@ -16,7 +16,7 @@ describe('HistoryComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
NoopAnimationsModule,
SharedModule,
WalletModule.forRoot(),
RpcModule.forRoot(),
Expand Down
4 changes: 2 additions & 2 deletions src/app/wallet/wallet/receive/receive.component.spec.ts
@@ -1,5 +1,5 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { QRCodeModule } from 'angular2-qrcode';

import { CoreModule } from '../../../core/core.module';
Expand All @@ -20,7 +20,7 @@ describe('ReceiveComponent', () => {
imports: [
/* deps */
QRCodeModule,
BrowserAnimationsModule,
NoopAnimationsModule,
/* own */
SharedModule, // is this even needed?
CoreModule.forRoot(),
Expand Down
4 changes: 2 additions & 2 deletions src/app/wallet/wallet/send/send.component.spec.ts
@@ -1,6 +1,6 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MatDialogRef } from '@angular/material';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

import { CoreModule } from '../../../core/core.module';
import { CoreUiModule } from '../../../core-ui/core-ui.module';
Expand All @@ -25,7 +25,7 @@ describe('SendComponent', () => {
CoreUiModule.forRoot(),
ModalsModule.forRoot(),
WalletModule.forRoot(), // a bit circular here..
BrowserAnimationsModule
NoopAnimationsModule
],
providers: [
{ provide: MatDialogRef }
Expand Down
3 changes: 3 additions & 0 deletions src/assets/theme.scss
Expand Up @@ -313,6 +313,9 @@ input {
\* ------------------------------- */

.cdk-overlay-container {
.cdk-overlay-pane {
max-width: 900px !important;
}
.mat-dialog-container {
position: relative;
/*
Expand Down

0 comments on commit cb92208

Please sign in to comment.