Skip to content

Commit

Permalink
Bookmarks: If group is empty - add bookmark to "Default" group
Browse files Browse the repository at this point in the history
(reference #30)
  • Loading branch information
piotrzarzycki21 committed Aug 10, 2023
1 parent 5422ef7 commit 4038d5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,14 @@ package mediator.bookmarks

private function onBookmarkFormValid(event:Event):void
{
this.bookmarksProxy.selectedGroup = view.groupText;
bookmarksProxy.selectedBookmark.group = view.groupText;
var groupName:String = "Default";
if (view.groupText)
{
groupName = view.groupText;
}

this.bookmarksProxy.selectedGroup = groupName;
bookmarksProxy.selectedBookmark.group = groupName;
bookmarksProxy.selectedBookmark.name = view.nameText;
bookmarksProxy.selectedBookmark.type = view.selectedBookmarkType;
bookmarksProxy.selectedBookmark.url = view.urlText;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package model.vo
[Bindable]
public class BookmarkVO
{
public var group:String;
public var group:String = "Default";
public var dominoUniversalID:String;
public var name:String;
public var server:String;
Expand All @@ -14,7 +14,7 @@ package model.vo
public var nomadURL:String
public var description:String;

public function BookmarkVO(group:String = "", dominoUniversalID:String = "", name:String = "",
public function BookmarkVO(group:String = "Default", dominoUniversalID:String = "", name:String = "",
server:String = "", database:String = "", view:String = "",
type:String = "", url:String = "", nomadUrl:String = "", description:String = "")
{
Expand Down

0 comments on commit 4038d5f

Please sign in to comment.