forked from finos/waltz
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
121 additions
and
7 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
waltz-ng/client/report-grid/components/svelte/ReportGridCloneConfirmation.svelte
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,47 @@ | ||
<script> | ||
import _ from "lodash"; | ||
export let grid; | ||
export let doClone; | ||
export let doCancel; | ||
const workingCopy = { | ||
name: null, | ||
description: null, | ||
} | ||
</script> | ||
|
||
|
||
<h4>Cloning report grid: {grid.definition.name}</h4> | ||
<ul> | ||
<li>Please provide a name for the new grid</li> | ||
<li>All columns will be copied to the newly created grid</li> | ||
<li>You will be an owner of the new grid, able to edit columns and members</li> | ||
</ul> | ||
<br> | ||
<div class="form-group"> | ||
<label for="title">Title</label> | ||
<input class="form-control" | ||
id="title" | ||
placeholder="Grid Name" | ||
bind:value={workingCopy.name}> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="description">Description</label> | ||
<textarea class="form-control" | ||
id="description" | ||
bind:value={workingCopy.description}/> | ||
</div> | ||
|
||
<button class="btn-success btn-sm" | ||
disabled={_.isNil(workingCopy.name)} | ||
on:click={() => doClone(grid.definition.id, workingCopy)}> | ||
Clone | ||
</button> | ||
<button class="btn-primary btn btn-sm" | ||
on:click={doCancel}> | ||
Cancel | ||
</button> |
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
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