Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/qml/QFieldLocalDataPickerScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ Page {
text: qsTr("Push to QFieldCloud")
onTriggered: {
pushFilesToQFieldCloudConnection.enabled = true;
pushFilesToQFieldCloudConnection.sendingItem = true;
pushFilesToQFieldCloudConnection.sendingMultiple = true;
QFieldCloudUtils.addPendingAttachments(cloudConnection.userInformation.username, QFieldCloudUtils.getProjectId(table.model.currentPath), [itemMenu.itemPath], cloudConnection, true);
}
}
Expand Down Expand Up @@ -894,15 +894,16 @@ Page {
enabled: false
target: cloudConnection

property bool sendingItem: false
property bool sendingMultiple: false

function onPendingAttachmentsAdded() {
platformUtilities.uploadPendingAttachments(cloudConnection);
if (pushFilesToQFieldCloudConnection.sendingItem) {
if (pushFilesToQFieldCloudConnection.sendingMultiple) {
displayToast(qsTr("‘%1’ is being uploaded to QFieldCloud").arg(FileUtils.fileName(itemMenu.itemPath)));
pushFilesToQFieldCloudConnection.sendingItem = false;
pushFilesToQFieldCloudConnection.sendingMultiple = false;
} else {
localFilesModel.clearSelection();
displayToast(qsTr("Items being uploaded to QFieldCloud"));
}
pushFilesToQFieldCloudConnection.enabled = false;
}
Expand Down
Loading