added update message

This commit is contained in:
Nicolas Constant 2020-02-25 23:55:35 -05:00
parent 6d83550557
commit f9ac4319aa
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
3 changed files with 70 additions and 1 deletions

View File

@ -10,6 +10,12 @@
</div>
</div>
<div class="auto-update">
<div class="auto-update__display">
<div class="auto-update__display--text">A new version is available!</div> <a href class="auto-update__display--reload">reload</a> <a href class="auto-update__display--close"><fa-icon [icon]="faTimes"></fa-icon></a>
</div>
</div>
<app-media-viewer id="media-viewer" *ngIf="openedMediaEvent" [openedMediaEvent]="openedMediaEvent"
(closeSubject)="closeMedia()" (dragenter)="dragenter($event)"></app-media-viewer>

View File

@ -98,3 +98,64 @@ app-streams-selection-footer {
bottom: 0;
left: 50px;
}
.auto-update {
transition: all .2s;
position: absolute;
height: 70px;
left: 0;
right: 0;
bottom: 0;
z-index: 999999999;
&__display {
position: relative;
// height: 30px;
width: 300px;
// margin: 0 auto 30px auto;
margin: auto;
border-radius: 2px;
color: rgba(rgb(0, 4, 24), 1);
background: rgba(rgb(0, 140, 255), 1);
&--text {
display: inline-block;
padding: 5px 10px;
}
&--reload {
transition: all .2s;
position: absolute;
right: 31px;
padding: 5px 10px;
text-decoration: none;
color: rgba(rgb(0, 4, 24), 1);
background-color: red;
&:hover {
background-color: rgb(97, 0, 0);
}
}
&--close {
transition: all .2s;
position: absolute;
right: 0;
display: inline-block;
padding: 5px 10px;
text-decoration: none;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
color: rgba(rgb(0, 4, 24), 1);
background-color: red;
&:hover {
background-color: rgb(97, 0, 0);
}
}
}
}

View File

@ -2,6 +2,7 @@ import { Component, OnInit, OnDestroy } from '@angular/core';
import { Subscription, Observable, Subject } from 'rxjs';
import { debounceTime, map } from 'rxjs/operators';
import { Select } from '@ngxs/store';
import { faTimes } from "@fortawesome/free-solid-svg-icons";
// import { ElectronService } from 'ngx-electron';
import { NavigationService, LeftPanelType, OpenLeftPanelEvent } from './services/navigation.service';
@ -16,6 +17,7 @@ import { MediaService } from './services/media.service';
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit, OnDestroy {
faTimes = faTimes;
title = 'Sengi';
floatingColumnActive: boolean;
tutorialActive: boolean;