Skip to content

Commit eb74bdb

Browse files
committed
2.3 - Preparing files for next version and fixed loading inside settings
1 parent 253bb98 commit eb74bdb

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ Angular YouTube Player 2.3
5757
- Improved speed performance and fixed major bugs
5858
- Implemented login with google account
5959
- New way to loading the app
60-
- *Keep your playlist and settings in cloud - WIP*
61-
- *Implemented session key to keep playlist in cloud (without account) - WIP*
6260

6361
Angular YouTube Player 2.2
6462
- Sort playlist by drag and drop (used [ng2-dragula](https://valor-software.com/ng2-dragula/ "NG2 Dragula"))
@@ -138,7 +136,7 @@ Angular YouTube Player 1.1
138136
- Adding mute/unmute functionality
139137
- Improved user interface and user experience
140138
- Adding settings functionality, the settings will get from ***assets/settings.json***
141-
- **Settings**
139+
**Settings**
142140
- *Show/hide debugging features*
143141
- *Show/hide thumbnails in search*
144142

@@ -160,7 +158,9 @@ Angular YouTube Player 1.0.0
160158
- *Room chat **(unversioned)***
161159

162160
#### Roadmap to 3.0
163-
- Integrating ngrx store **(in v2.4)**
161+
- Keep your playlist and settings in cloud **(in v2.4)**
162+
- Implemented session key to keep playlist in cloud (without account) **(in v2.4)**
163+
- Integrating ngrx store **(in v2.5)**
164164
- Integrating YouTube subscriptions/playlist **(in v2.9)**
165165

166166
**Rooms**

src/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ <h1><span class="favicon-app"></span>YouTube Player v2.0</h1>
1212
<button id="linux-maximize" (click)="winClose();"></button>
1313
</div>
1414
</div>
15-
<ng-container *ngIf="!globals.isLogged">
15+
<!-- <ng-container *ngIf="!globals.isLogged">
1616
<button type="button" (click)="loginGoogle()">Login</button>
1717
</ng-container>
1818
<ng-container *ngIf="globals.isLogged">
1919
<button type="button" (click)="logout()">Logout</button>
2020
</ng-container>
21-
<button type="button" (click)="refresh()">Reinit</button>
21+
<button type="button" (click)="refresh()">Reinit</button> -->
2222
<div class="device-bar">
2323
<button type="button" class="trigger-nav" (click)="openMobileMenu()"><span class="fa fa-navicon"></span>Menu</button>
2424
<div id="logo">

src/app/components/youtube-settings.component.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ export class SettingsComponent implements OnInit {
8686
}
8787

8888
getDefaultSettings() {
89-
this.globals.internal_settings = this.globals.settings.form_settings;
90-
this.globals.external_settings = this.globals.settings.api_settings;
91-
this.initExternalForm();
92-
this.loading = true;
93-
this.setForm();
89+
this.shared.getSettings().then(() => {
90+
this.globals.internal_settings = this.globals.settings.form_settings;
91+
this.globals.external_settings = this.globals.settings.api_settings;
92+
this.initExternalForm();
93+
this.loading = true;
94+
this.setForm();
95+
})
9496
}
9597

9698
externalSave() {

0 commit comments

Comments
 (0)