Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Offline toggle button#113

Closed
wtrocki wants to merge 1 commit intoaerogear:masterfrom
jhellar:toggleOffline
Closed

Offline toggle button#113
wtrocki wants to merge 1 commit intoaerogear:masterfrom
jhellar:toggleOffline

Conversation

@wtrocki
Copy link
Copy Markdown
Contributor

@wtrocki wtrocki commented Mar 19, 2019

@jhellar done button already that is really helpful, but it will need some refinement in order to merge that to master. We should look to bring that into master as it will help with general testing and oversight.
Let's collab on this and share ideas on how this could be done.

ping @StephenCoady @piccolazucca

import { AuthService } from '../auth.service';
import { taskCacheUpdates } from './cache.updates';

export class ToggleableNetworkStatus implements NetworkStatus {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be moved to separate class.
The toggable state should be also persisted in ionic store.

<ion-badge color="secondary" *ngIf="online">Online</ion-badge>
<ion-badge color="primary" *ngIf="!online">Offline</ion-badge>
</ion-label>
<ion-button color="primary" fill="outline" (click)="restart()">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] We may bring that to the settings screen where we will enable this feature and could also use the toggle button to change status.

@wtrocki
Copy link
Copy Markdown
Contributor Author

wtrocki commented Apr 4, 2019

Closing as outdated.

@wtrocki wtrocki closed this Apr 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants