feat: make server own products

This commit is contained in:
2026-10-21 12:10:42 +02:00
parent 93acfe15a9
commit b15d94a805
21 changed files with 1717 additions and 106 deletions
@@ -35,6 +35,11 @@ class RemoteSyncViewModel extends ChangeNotifier {
String? _lastError;
String? get lastError => _lastError;
bool _isOffline = false;
/// The last sync failed for lack of a connection, not because of an error.
bool get isOffline => _isOffline;
String? _venueId;
String? get venueId => _venueId;
@@ -109,8 +114,10 @@ class RemoteSyncViewModel extends ChangeNotifier {
case RemoteSyncEventType.syncCompleted:
_lastSyncAt = DateTime.now();
_lastError = null;
_isOffline = false;
case RemoteSyncEventType.syncFailed:
_lastError = event.message;
_isOffline = event.offline;
case RemoteSyncEventType.unauthorized:
_isConfigured = false;
_wasRevoked = true;