mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
b3f8af8e06
Qml code referring to the old code base commented out, but not deleted, due to easier refactoring the rest of the app.
62 lines
2.4 KiB
QML
62 lines
2.4 KiB
QML
import QtQuick 2.13
|
|
|
|
import "../Profile/stores" as ProfileStores
|
|
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
readonly property ProfileStores.RootStore profileStore: ProfileStores.RootStore {}
|
|
|
|
property var mainModuleInst: mainModule
|
|
property var profileModuleInst: profileModule
|
|
|
|
// Not Refactored Yet
|
|
// property var chatsModelInst: chatsModel
|
|
// Not Refactored Yet
|
|
// property var walletModelInst: walletModel
|
|
property var userProfileInst: userProfile
|
|
|
|
property var accounts: walletSectionAccounts.model
|
|
property var currentAccount: walletSectionCurrent
|
|
// Not Refactored Yet
|
|
// property var profileModelInst: profileModel
|
|
|
|
property var assets: walletSectionAccountTokens.model
|
|
// property MessageStore messageStore: MessageStore { }
|
|
|
|
property var contactsModuleInst: contactsModule
|
|
property var addedContacts: contactsModuleInst.model.addedContacts
|
|
|
|
|
|
function setCommunityMuted(communityId, checked) {
|
|
// Not Refactored Yet
|
|
// chatsModelInst.communities.setCommunityMuted(communityId, checked);
|
|
}
|
|
|
|
function exportCommunity() {
|
|
// Not Refactored Yet
|
|
// chatsModelInst.communities.exportCommunity();
|
|
}
|
|
|
|
function leaveCommunity(communityId) {
|
|
// Not Refactored Yet
|
|
// chatsModelInst.communities.leaveCommunity(communityId);
|
|
}
|
|
|
|
function createCommunity(communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY) {
|
|
// Not Refactored Yet
|
|
// chatsModelInst.communities.createCommunity(communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY);
|
|
}
|
|
|
|
function editCommunity(communityId, communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY) {
|
|
// Not Refactored Yet
|
|
// chatsModelInst.communities.editCommunity(communityId, communityName, communityDescription, checkedMembership, ensOnlySwitchChecked, communityColor, communityImage, imageCropperModalaX, imageCropperModalaY, imageCropperModalbX, imageCropperModalbY);
|
|
}
|
|
|
|
function copyToClipboard(text) {
|
|
// Not Refactored Yet
|
|
// chatsModelInst.copyToClipboard(text);
|
|
}
|
|
}
|