autofill restore backup name
This commit is contained in:
parent
f9cd67a279
commit
eb190bda0e
|
@ -85,7 +85,7 @@
|
||||||
bind:this={restoreDialog}
|
bind:this={restoreDialog}
|
||||||
okText="Continue"
|
okText="Continue"
|
||||||
onOk={restoreBackupModal?.show}
|
onOk={restoreBackupModal?.show}
|
||||||
title="Confirm Restore"
|
title="Confirm restore"
|
||||||
warning={false}
|
warning={false}
|
||||||
>
|
>
|
||||||
<Heading size="S">{row.name}</Heading>
|
<Heading size="S">{row.name}</Heading>
|
||||||
|
|
|
@ -10,11 +10,7 @@
|
||||||
onConfirm={() => createManualBackup(name)}
|
onConfirm={() => createManualBackup(name)}
|
||||||
title="Create new backup"
|
title="Create new backup"
|
||||||
confirmText="Create"
|
confirmText="Create"
|
||||||
><Input
|
><Input label="Backup name" bind:value={name} /></ModalContent
|
||||||
label="Backup name"
|
|
||||||
bind:value={name}
|
|
||||||
placeholder={"test"}
|
|
||||||
/></ModalContent
|
|
||||||
>
|
>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
<script>
|
<script>
|
||||||
import { ModalContent, Input, Body } from "@budibase/bbui"
|
import { ModalContent, Input, Body } from "@budibase/bbui"
|
||||||
|
import { auth } from "stores/portal"
|
||||||
|
$: console.log($auth.user)
|
||||||
export let confirm
|
export let confirm
|
||||||
|
|
||||||
let name
|
let templateName = $auth.user.firstName
|
||||||
|
? `${$auth.user.firstName}'s Backup`
|
||||||
|
: "Restore Backup"
|
||||||
|
let name = templateName
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ModalContent
|
<ModalContent
|
||||||
onConfirm={() => confirm(name)}
|
onConfirm={() => confirm(name)}
|
||||||
title="Backup your current version"
|
title="Backup your current version"
|
||||||
confirmText="Confirm Restore"
|
confirmText="Confirm Restore"
|
||||||
|
disabled={!name}
|
||||||
>
|
>
|
||||||
<Body size="S"
|
<Body size="S"
|
||||||
>Create a backup of your current app to allow you to roll back after
|
>Create a backup of your current app to allow you to roll back after
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
<script>
|
<script>
|
||||||
export let value
|
export let value
|
||||||
$: username = value?.firstName
|
|
||||||
? `${value?.firstName} ${value?.lastName}`
|
let firstName = value?.firstName
|
||||||
: value?.email
|
let lastName = value?.lastName || ""
|
||||||
|
|
||||||
|
$: username =
|
||||||
|
firstName && lastName ? `${firstName} ${lastName}` : value?.email
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
|
|
|
@ -113,7 +113,6 @@
|
||||||
>
|
>
|
||||||
Access
|
Access
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
{#if isPublished}
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
on:click={() =>
|
on:click={() =>
|
||||||
$goto(
|
$goto(
|
||||||
|
@ -124,7 +123,13 @@
|
||||||
>
|
>
|
||||||
Automation history
|
Automation history
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
{/if}
|
<MenuItem
|
||||||
|
on:click={() =>
|
||||||
|
$goto(`../../portal/overview/${application}?tab=Backups`)}
|
||||||
|
>
|
||||||
|
Backups
|
||||||
|
</MenuItem>
|
||||||
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
on:click={() =>
|
on:click={() =>
|
||||||
$goto(`../../portal/overview/${application}?tab=Settings`)}
|
$goto(`../../portal/overview/${application}?tab=Settings`)}
|
||||||
|
|
Loading…
Reference in New Issue