Warning, /network/neochat/src/qml/ConfirmDeactivateAccountDialog.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2023 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.kirigamiaddons.formcard as FormCard 0008 0009 import org.kde.neochat 0010 0011 FormCard.FormCardPage { 0012 id: root 0013 0014 required property NeoChatConnection connection 0015 0016 title: i18nc("@title", "Deactivate Account") 0017 0018 FormCard.FormHeader { 0019 title: i18nc("@title", "Deactivate Account") 0020 } 0021 FormCard.FormCard { 0022 FormCard.FormTextDelegate { 0023 text: i18nc("@title", "Warning") 0024 description: i18n("Your account will be permanently disabled.\nThis cannot be undone.\nYour Matrix ID will not be available for new accounts.\nYour messages will stay available.") 0025 } 0026 0027 FormCard.FormTextFieldDelegate { 0028 id: passwordField 0029 label: i18n("Password") 0030 echoMode: TextInput.Password 0031 } 0032 0033 FormCard.FormButtonDelegate { 0034 text: i18n("Deactivate account") 0035 icon.name: "emblem-warning" 0036 enabled: passwordField.text.length > 0 0037 onClicked: { 0038 root.connection.deactivateAccount(passwordField.text); 0039 root.closeDialog(); 0040 } 0041 } 0042 } 0043 }