fixed toasts

This commit is contained in:
Eugene Pankov 2019-06-09 19:49:54 +02:00
parent 639b8e561c
commit 80e67fed22
4 changed files with 8 additions and 6 deletions

View File

@ -28,7 +28,7 @@
"electron-updater": "^4.0.6",
"js-yaml": "3.13.1",
"mz": "^2.7.0",
"ngx-toastr": "^9.1.1",
"ngx-toastr": "^10.0.4",
"npm": "~6.9.0",
"path": "0.12.7",
"rxjs": "^6.5.2",

View File

@ -10,6 +10,7 @@ export function getRootModule (plugins: any[]) {
NgbModule.forRoot(),
ToastrModule.forRoot({
positionClass: 'toast-bottom-center',
toastClass: 'toast',
preventDuplicates: true,
extendedTimeOut: 5000,
}),

View File

@ -2,6 +2,7 @@
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
.toast {
box-shadow: 0 1px 0 rgba(0,0,0,.25);

View File

@ -1899,10 +1899,10 @@ mz@^2.7.0:
object-assign "^4.0.1"
thenify-all "^1.0.0"
ngx-toastr@^9.1.1:
version "9.1.1"
resolved "https://registry.yarnpkg.com/ngx-toastr/-/ngx-toastr-9.1.1.tgz#c7ec0284d13951422ccf47439a387372ddccc768"
integrity sha512-v43BmIXPmwMRx9Uv0ru2UaPQLA14gTsqWgXrO1DKC8RXnBGGoQEE48cVCaDX1GhaGM5GSzVO2s0o+nb688zsFw==
ngx-toastr@^10.0.4:
version "10.0.4"
resolved "https://registry.yarnpkg.com/ngx-toastr/-/ngx-toastr-10.0.4.tgz#cbc61b8d67d748194ea7a28542b01e39bf1fc6c2"
integrity sha512-iN+zr2Msae5wV334c1dytRhSYNdUz467jwv1NE91lMmllsMkpUzZlu8VdFCeTFt+/R4TWzz19xBRqhpp+OAuVA==
dependencies:
tslib "^1.9.0"
@ -2084,7 +2084,7 @@ npm-user-validate@~1.0.0:
resolved "https://registry.yarnpkg.com/npm-user-validate/-/npm-user-validate-1.0.0.tgz#8ceca0f5cea04d4e93519ef72d0557a75122e951"
integrity sha1-jOyg9c6gTU6TUZ73LQVXp1Ei6VE=
npm@6:
npm@~6.9.0:
version "6.9.0"
resolved "https://registry.yarnpkg.com/npm/-/npm-6.9.0.tgz#5296720486814a64a7fb082de00c4b5cfd11211f"
integrity sha512-91V+zB5hDxO+Jyp2sUKS7juHlIM95dGQxTeQtmZI1nAI/7kjWXFipPrtwwKjhyKmV4GsS2LzJhrxRjGWsU9z/w==