-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Avoid to call backup intent when not available
A window.cozy.backup_available flag was sent by the flagship app but not used. So errors were shown because intent were not available on old flagship app version.
- Loading branch information
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react' | ||
|
||
import { useI18n } from 'cozy-ui/transpiled/react/I18n' | ||
import Alert from 'cozy-ui/transpiled/react/Alert' | ||
|
||
const UpdateAppAlert = () => { | ||
const { t } = useI18n() | ||
|
||
return ( | ||
<> | ||
<Alert className="u-mt-1">{t('Backup.UpdateAppAlert.description')}</Alert> | ||
</> | ||
) | ||
} | ||
|
||
export default UpdateAppAlert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters