fix: torsten review

This commit is contained in:
Torsten Dittmann
2024-09-27 15:53:41 +02:00
parent bc0b3e36c4
commit e099c2b456
3 changed files with 5 additions and 5 deletions
@@ -22,6 +22,7 @@
import { onMount } from 'svelte';
import { feedback } from '$lib/stores/feedback';
import { cronExpression, type UserBackupPolicy } from '$lib/helpers/backups';
import { ID } from '@appwrite.io/console';
let showCreatePolicy = false;
let policyCreateError: string;
@@ -88,7 +89,7 @@
cronExpression(policy);
return sdk.forProject.backups.createPolicy(
policy.id,
ID.unique(),
['databases'],
policy.retained,
policy.schedule,
@@ -153,7 +154,7 @@
<div class="u-flex-vertical u-width-full-line">
<ContainerHeader
title="Backups"
buttonText="Manual Backup"
buttonText="Manual backup"
buttonEvent="create_backup"
buttonType="secondary"
buttonDisabled={isDisabled}
@@ -21,10 +21,9 @@
on:click={buttonMethod}
disabled={buttonDisabled}
text={buttonType === 'text'}
class="small-radius-border-button"
secondary={buttonType === 'secondary'}>
<span class="icon-plus" aria-hidden="true" />
<span class="body-text-1">{buttonText}</span>
{buttonText}
</Button>
</header>
@@ -213,7 +213,7 @@
class="small-radius-border-button"
on:click={() => (showCreatePolicy = true)}>
<span class="icon-plus" aria-hidden="true" />
<span class="text">Create Policy</span>
<span class="text">Create policy</span>
</Button>
</div>
</div>