-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from TheAxelander/hotfix
Merge changes for version 1.4.1
- Loading branch information
Showing
10 changed files
with
181 additions
and
14 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 |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
|
||
## Custom files | ||
*.db | ||
*.db-shm | ||
*.db-wal | ||
*.DS_Store | ||
|
||
# User-specific files | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
@using OpenBudgeteer.Core.ViewModels.ItemViewModels | ||
@using System.Drawing | ||
@using OpenBudgeteer.Core.Models | ||
@if (IsDialogVisible) | ||
{ | ||
<div class="modal fade show" style=" display: block;"> | ||
<div class="modal-dialog modal-dialog-scrollable" style="max-width: 600px"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h4 class="modal-title">New Bucket Group</h4> | ||
<button type="button" class="close" data-dismiss="modal" @onclick="OnCancelClickCallback">×</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="form-group"> | ||
<label>Name:</label> | ||
<input class="form-control form-control-sm" type="text" @bind="DataContext.Name"/> | ||
</div> | ||
<div class="form-group"> | ||
<label>Position:</label> | ||
<div> | ||
<div class="form-check form-check-inline"> | ||
<input | ||
class="form-check-input" | ||
type="radio" | ||
name="newBucketGroupDialogPositionOptions" | ||
id="newBucketGroupDialogPositionOption1" | ||
value="firstPosition" | ||
checked | ||
@onchange="@PositionSelectionChanged"> | ||
<label class="form-check-label" for="newBucketGroupDialogPositionOption1">Set on first position</label> | ||
</div> | ||
<div class="form-check form-check-inline"> | ||
<input | ||
class="form-check-input" | ||
type="radio" | ||
name="newBucketGroupDialogPositionOptions" | ||
id="newBucketGroupDialogPositionOption2" | ||
value="lastPosition" | ||
@onchange="@PositionSelectionChanged"> | ||
<label class="form-check-label" for="newBucketGroupDialogPositionOption2">Set on last position</label> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-primary" data-dismiss="modal" @onclick="OnSaveClickCallback">Save</button> | ||
<button type="button" class="btn btn-danger" data-dismiss="modal" @onclick="OnCancelClickCallback">Cancel</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="modal-backdrop fade show"></div> | ||
} | ||
|
||
@code { | ||
[Parameter] | ||
public BucketGroup DataContext { get; set; } | ||
|
||
[Parameter] | ||
public bool IsDialogVisible { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback<MouseEventArgs> OnCancelClickCallback { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback<MouseEventArgs> OnSaveClickCallback { get; set; } | ||
|
||
private void PositionSelectionChanged(ChangeEventArgs eventArgs) | ||
{ | ||
var selectedOption = eventArgs.Value as string; | ||
DataContext.Position = selectedOption == "firstPosition" ? 0 : -1; | ||
} | ||
} |
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
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