Skip to content

Commit

Permalink
Remove leftover/mistaken mutation. Add new KDS 'disconnected' icon
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellamaki committed Jul 27, 2021
1 parent 1e46927 commit 0daf73b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions kolibri/core/assets/src/state/modules/core/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ function _notificationListState(data) {
}));
}

function _userSyncStatusState(data) {
return data;
}
/**
* Actions
*
Expand Down Expand Up @@ -910,7 +907,6 @@ export function fetchUserSyncStatus(store, params) {
getParams: { member_of: params.member_of },
}).then(
syncData => {
store.commit('SET_CORE_CHANNEL_LIST', _userSyncStatusState(syncData));
return syncData;
},
error => {
Expand All @@ -926,7 +922,6 @@ export function fetchUserSyncStatus(store, params) {
getParams: { user: params.user },
}).then(
syncData => {
store.commit('SET_CORE_CHANNEL_LIST', _userSyncStatusState(syncData));
return syncData;
},
error => {
Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/assets/src/views/SyncStatusDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
[SyncStatus.UNABLE_TO_SYNC]: 'error',
[SyncStatus.NOT_RECENTLY_SYNCED]: 'error',
[SyncStatus.UNABLE_OR_NOT_SYNCED]: 'error',
[SyncStatus.NOT_CONNECTED]: 'error',
[SyncStatus.NOT_CONNECTED]: 'disconnected',
};
return statusIcons[this.syncStatus] || '';
},
Expand Down

0 comments on commit 0daf73b

Please sign in to comment.