Online account can now be created from the EditItemDialog. The response isn't processed properly yet.
This commit is contained in:
@ -160,6 +160,17 @@ void GenericCore::onBiddingsChanged(int round, QList<bidding> biddings) {
|
||||
// NEXT merge biddings into model
|
||||
}
|
||||
|
||||
void GenericCore::onCreateOnlineAccountTriggered(const QString& mailAddress) {
|
||||
qInfo() << "Creating online account for:" << mailAddress;
|
||||
// QJsonDocument onlineCredentialsDoc = m_mainModel->getOnlineCredentialsAsJsonDoc(mailAddress);
|
||||
// emit createOnlineUser(onlineCredentialsDoc.toJson());
|
||||
emit sendPostRequest(RegisterUser, mailAddress);
|
||||
}
|
||||
|
||||
// void GenericCore::onOnlineUserCreatedReceived(const QJsonDocument& jsonDoc) {}
|
||||
|
||||
// void GenericCore::onOnlineUserExistedReceived(const QJsonDocument jsonDoc) {}
|
||||
|
||||
void GenericCore::setupModels() {
|
||||
m_mainModel = make_shared<TableModel>(m_modelUndoStack);
|
||||
m_sortFilterModel = make_shared<GeneralSortFilterModel>(m_mainModel);
|
||||
|
||||
Reference in New Issue
Block a user