ActivityPub-federated video streaming platform using P2P directly in your web browser
Client: add message if the admin wants to make friends without https
Chocobozzz8735451afff3
diff --git a/client/src/app/admin/friends/friend-add/friend-add.component.html b/client/src/app/admin/friends/friend-add/friend-add.component.htmlindex 6218228600..eebe033f9f 100644--- a/client/src/app/admin/friends/friend-add/friend-add.component.html+++ b/client/src/app/admin/friends/friend-add/friend-add.component.html@@ -22,5 +22,9 @@</div></div>+ <div *ngIf="canMakeFriends() === false" class="alert alert-warning">+ It seems that you are not on a HTTPS pod. Your webserver need to have TLS activated in order to make friends.+ </div>+<input type="submit" value="Make friends" class="btn btn-default" [disabled]="!isFormValid()"></form>diff --git a/client/src/app/admin/friends/friend-add/friend-add.component.ts b/client/src/app/admin/friends/friend-add/friend-add.component.tsindex 86b018de25..14f24c1924 100644--- a/client/src/app/admin/friends/friend-add/friend-add.component.ts+++ b/client/src/app/admin/friends/friend-add/friend-add.component.ts@@ -27,6 +27,10 @@ export class FriendAddComponent implements OnInit {this.hosts.push('');}+ canMakeFriends() {+ return window.location.protocol === 'https://';+ }+customTrackBy(index: number, obj: any): any {return index;}