Warning, /network/neochat/src/qml/Sso.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2020 Tobias Fella <tobias.fella@kde.org> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 import QtQuick 0005 import QtQuick.Layouts 0006 0007 import org.kde.kirigami as Kirigami 0008 import org.kde.kirigamiaddons.formcard as FormCard 0009 0010 import org.kde.neochat 0011 0012 LoginStep { 0013 id: root 0014 0015 noControls: true 0016 0017 Component.onCompleted: LoginHelper.loginWithSso() 0018 0019 Connections { 0020 target: LoginHelper 0021 function onSsoUrlChanged() { 0022 UrlHelper.openUrl(LoginHelper.ssoUrl); 0023 } 0024 function onConnected() { 0025 processed("qrc:/org/kde/neochat/qml/Loading.qml"); 0026 } 0027 } 0028 0029 FormCard.FormTextDelegate { 0030 text: i18n("Continue the login process in your browser.") 0031 } 0032 0033 previousAction: Kirigami.Action { 0034 onTriggered: processed("qrc:/org/kde/neochat/qml/Login.qml") 0035 } 0036 0037 nextAction: Kirigami.Action { 0038 text: i18nc("@action:button", "Re-open SSO URL") 0039 onTriggered: UrlHelper.openUrl(LoginHelper.ssoUrl) 0040 } 0041 }