This commit is contained in:
Eugene Pankov
2021-07-22 21:34:05 +02:00
parent 08e8f07785
commit 0b0d711a08
7 changed files with 55 additions and 16 deletions

View File

@@ -21,9 +21,7 @@ export class LoginComponent {
constructor (
private loginService: LoginService,
) {
this.providers = [this.providers[0]] // only keep GH for now
}
) { }
async ngOnInit () {
await this.loginService.ready$.toPromise()

View File

@@ -1,8 +1,15 @@
.modal-header
h5.modal-title Settings
h3.modal-title Settings
.modal-body
.mb-3
h5 GitHub account
a.btn.btn-info(href='/api/1/auth/social/login/github')
fa-icon([icon]='_githubIcon', [fixedWidth]='true')
span Connect a GitHub account
.mb-3
h5 Connection gateway
.form-check.form-switch
input.form-check-input(
type='checkbox',

View File

@@ -4,6 +4,7 @@ import { LoginService } from '../services/login.service'
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'
import { User } from '../api'
import { AppConnectorService } from '../services/appConnector.service'
import { faGithub } from '@fortawesome/free-brands-svg-icons'
@Component({
selector: 'settings-modal',
@@ -13,6 +14,7 @@ import { AppConnectorService } from '../services/appConnector.service'
export class SettingsModalComponent {
user: User
customGatewayEnabled = false
_githubIcon = faGithub
constructor (
public appConnector: AppConnectorService,