A continuation of HomeBox the inventory and organization system built for the Home User
fix: #147 notifier now shows previous input value
Matt Kilgorea3d5485c1dac
diff --git a/backend/app/api/static/docs/docs.go b/backend/app/api/static/docs/docs.goindex e72b0e56..b5fa2dcb 100644--- a/backend/app/api/static/docs/docs.go+++ b/backend/app/api/static/docs/docs.go@@ -2762,6 +2762,10 @@ const docTemplate = `{"updatedAt": {"type": "string"},+ "url": {+ "description": "URL field is not exposed to the client",+ "type": "string"+ },"userId": {"type": "string"}diff --git a/backend/app/api/static/docs/swagger.json b/backend/app/api/static/docs/swagger.jsonindex 4601140a..12e556ce 100644--- a/backend/app/api/static/docs/swagger.json+++ b/backend/app/api/static/docs/swagger.json@@ -2755,6 +2755,10 @@"updatedAt": {"type": "string"},+ "url": {+ "description": "URL field is not exposed to the client",+ "type": "string"+ },"userId": {"type": "string"}diff --git a/backend/app/api/static/docs/swagger.yaml b/backend/app/api/static/docs/swagger.yamlindex 6c2d5222..e663b6a6 100644--- a/backend/app/api/static/docs/swagger.yaml+++ b/backend/app/api/static/docs/swagger.yaml@@ -539,6 +539,9 @@ definitions:type: stringupdatedAt:type: string+ url:+ description: URL field is not exposed to the client+ type: stringuserId:type: stringtype: objectdiff --git a/backend/internal/data/repo/repo_notifier.go b/backend/internal/data/repo/repo_notifier.goindex 8313bc69..867271b7 100644--- a/backend/internal/data/repo/repo_notifier.go+++ b/backend/internal/data/repo/repo_notifier.go@@ -55,7 +55,7 @@ type (Name string `json:"name"`IsActive bool `json:"isActive"`- URL string `json:"-"` // URL field is not exposed to the client+ URL string `json:"url"`})diff --git a/docs/docs/api/openapi-2.0.json b/docs/docs/api/openapi-2.0.jsonindex 4601140a..12e556ce 100644--- a/docs/docs/api/openapi-2.0.json+++ b/docs/docs/api/openapi-2.0.json@@ -2755,6 +2755,10 @@"updatedAt": {"type": "string"},+ "url": {+ "description": "URL field is not exposed to the client",+ "type": "string"+ },"userId": {"type": "string"}diff --git a/frontend/lib/api/types/data-contracts.ts b/frontend/lib/api/types/data-contracts.tsindex 62c1286f..f56ffae1 100644--- a/frontend/lib/api/types/data-contracts.ts+++ b/frontend/lib/api/types/data-contracts.ts@@ -323,6 +323,8 @@ export interface NotifierOut {isActive: boolean;name: string;updatedAt: Date | string;+ /** URL field is not exposed to the client */+ url: string;userId: string;}diff --git a/frontend/pages/profile.vue b/frontend/pages/profile.vueindex 8d91a493..0fe28739 100644--- a/frontend/pages/profile.vue+++ b/frontend/pages/profile.vue@@ -208,7 +208,7 @@targetID.value = v.id;notifier.value = {name: v.name,- url: "",+ url: v.url,isActive: v.isActive,};} else {