From 781ee183e1b41b4a2a8dbd4c75333b0a933b7910 Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Tue, 28 Feb 2023 11:29:40 +0100 Subject: [PATCH] feat: Add ParentID to Label --- label_types.go | 4 +++- server/backend/label.go | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/label_types.go b/label_types.go index 834aa8b..ec64eab 100644 --- a/label_types.go +++ b/label_types.go @@ -21,7 +21,9 @@ const ( ) type Label struct { - ID string + ID string + ParentID string + Name string Path []string Color string diff --git a/server/backend/label.go b/server/backend/label.go index bdb42bf..6055ab5 100644 --- a/server/backend/label.go +++ b/server/backend/label.go @@ -31,9 +31,10 @@ func (label *label) toLabel(labels map[string]*label) proton.Label { } return proton.Label{ - ID: label.labelID, - Name: label.name, - Path: path, - Type: label.labelType, + ID: label.labelID, + ParentID: label.parentID, + Name: label.name, + Path: path, + Type: label.labelType, } }