From abf47fac6ee7c860a07f672ef8a2b3c0f41574ab Mon Sep 17 00:00:00 2001 From: Flaminel Date: Thu, 18 Dec 2025 18:55:33 +0200 Subject: [PATCH] fixed ntfy having redundant inputs --- .../ntfy-provider.component.html | 30 ++----------------- .../ntfy-provider/ntfy-provider.component.ts | 4 +-- 2 files changed, 3 insertions(+), 31 deletions(-) diff --git a/code/frontend/src/app/settings/notification-settings/modals/ntfy-provider/ntfy-provider.component.html b/code/frontend/src/app/settings/notification-settings/modals/ntfy-provider/ntfy-provider.component.html index e6758a99..82b4916d 100644 --- a/code/frontend/src/app/settings/notification-settings/modals/ntfy-provider/ntfy-provider.component.html +++ b/code/frontend/src/app/settings/notification-settings/modals/ntfy-provider/ntfy-provider.component.html @@ -44,26 +44,13 @@ > Topics * - - - - - At least one topic is required At least one topic is required - Enter the ntfy topics you want to publish to. Press Enter or comma to add each topic. + Enter the ntfy topics you want to publish to. Press Enter or click + to add each topic. @@ -190,24 +177,11 @@ > Tags (Optional) - - - - - - Optional tags to add to notifications (e.g., warning, alert). Press Enter or comma to add each tag. + Optional tags to add to notifications (e.g., warning, alert). Press Enter or click + to add each tag. diff --git a/code/frontend/src/app/settings/notification-settings/modals/ntfy-provider/ntfy-provider.component.ts b/code/frontend/src/app/settings/notification-settings/modals/ntfy-provider/ntfy-provider.component.ts index 3cfd877a..203bbc20 100644 --- a/code/frontend/src/app/settings/notification-settings/modals/ntfy-provider/ntfy-provider.component.ts +++ b/code/frontend/src/app/settings/notification-settings/modals/ntfy-provider/ntfy-provider.component.ts @@ -1,8 +1,7 @@ -import { Component, Input, Output, EventEmitter, OnInit, OnDestroy, OnChanges, SimpleChanges, inject } from '@angular/core'; +import { Component, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, inject } from '@angular/core'; import { FormControl, Validators, ReactiveFormsModule } from '@angular/forms'; import { CommonModule } from '@angular/common'; import { InputTextModule } from 'primeng/inputtext'; -import { AutoCompleteModule } from 'primeng/autocomplete'; import { SelectModule } from 'primeng/select'; import { MobileAutocompleteComponent } from '../../../../shared/components/mobile-autocomplete/mobile-autocomplete.component'; import { NtfyFormData, BaseProviderFormData } from '../../models/provider-modal.model'; @@ -20,7 +19,6 @@ import { NtfyPriority } from '../../../../shared/models/ntfy-priority.enum'; CommonModule, ReactiveFormsModule, InputTextModule, - AutoCompleteModule, SelectModule, MobileAutocompleteComponent, NotificationProviderBaseComponent