mirror of
https://github.com/Eugeny/tabby-web.git
synced 2026-08-17 23:06:04 +01:00
wip
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user