mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-31 11:40:47 +00:00
45 lines
1.6 KiB
HTML
45 lines
1.6 KiB
HTML
<h2 class="md-title">
|
|
<ng-md-icon icon="swap_vert"></ng-md-icon>
|
|
Make/Restore Backup
|
|
</h2>
|
|
|
|
<help-section>
|
|
<p>Here you can download all your data as <strong>JSON</strong> export for backups, but also to use it in a different context (e.g. you might want to export your projects in the browser and import them into the desktop version).</p>
|
|
<p>The import expects valid json to be copied into the text area.
|
|
<strong>NOTE: Once you hit the import button all your current settings and data will be overwritten!</strong></p>
|
|
</help-section>
|
|
|
|
<a class="md-raised md-button md-ink-ripple"
|
|
type="button"
|
|
download-backup>
|
|
<ng-md-icon icon="file_download"
|
|
aria-label="download settings"></ng-md-icon>
|
|
Download your tasks and settings
|
|
<div class="md-ripple-container"></div>
|
|
</a>
|
|
<md-button
|
|
class="md-raised"
|
|
ng-click="vm.showUploadForm=!vm.showUploadForm;">
|
|
<ng-md-icon icon="file_upload"
|
|
aria-label="import settings"></ng-md-icon>
|
|
Import Settings
|
|
</md-button>
|
|
|
|
|
|
<form ng-if="vm.showUploadForm"
|
|
ng-submit="vm.importSettings(vm.uploadSettingsTextarea)">
|
|
<md-input-container class="md-block"
|
|
flex-gt-sm>
|
|
<label>Copy and paste the contents of the download json file here</label>
|
|
<textarea ng-model="vm.uploadSettingsTextarea"
|
|
md-auto-focus
|
|
rows="3"></textarea>
|
|
</md-input-container>
|
|
|
|
<div><strong>NOTE: Once you hit the import button all your current settings and data will be overwritten!</strong>
|
|
</div>
|
|
|
|
<md-button type="submit"
|
|
class="md-raised md-primary">Import settings
|
|
</md-button>
|
|
</form>
|