Aggiungi rapidamente tag all'argomento

| | | |\n|— | — | —|\n|:information_source: | Riepilogo | Aggiungi tag a un argomento con un clic |\n|:hammer_and_wrench: | Repository | https://github.com/NateDhaliwal/quick-add-tags|\n|:question: | Guida all’installazione | Come installare un tema o un componente tema|\n|:open_book: | Nuovo ai temi di Discourse? | Guida per principianti all’uso dei temi di Discourse|\n\n[wrap=theme-install-button repoName="Quick-add Tags" repoUrl="https://github.com/NateDhaliwal/quick-add-tags\"]\nInstalla questo componente tema\n[/wrap]\n\nQuesto è un componente che aggiunge tag a un argomento con un pulsante nel footer dell’argomento. Fornisce anche l’opzione per chiudere automaticamente l’argomento dopo x giorni (minimo 0).\n\n

\n\nGli amministratori possono configurare quali tag aggiungere all’argomento con l’impostazione quick_add_tags.\n\nGli amministratori possono anche configurare l’etichetta del pulsante, il testo e il testo del messaggio di successo.\n\nUna volta aggiunto correttamente il tag, viene visualizzato un messaggio di successo:\nimage\n\nSe l’aggiunta del tag fallisce, verrà visualizzato un messaggio di errore:\nimage\n\nSe abiliti auto_close_topic, il pulsante di aggiunta tag sarà visibile solo agli amministratori/moderatori/TL4 (perché hanno i permessi per impostare il timer dell’argomento). Puoi impostare auto_close_topic_days su qualsiasi valore. Questo chiuderà l’argomento in quel numero di giorni.\n\nL’ispirazione è venuta da questo quando ho visto questo post. Spero che questo aiuti qualcuno!

20 Mi Piace

Questa PR sostituisce tutte le impostazioni precedenti con la nuova impostazione quick_add_tags_buttons.

Questo aggiunge la funzionalità per aggiungere più di 1 pulsante e fornisce anche l’opzione per limitare ciascun pulsante per categoria.

Inoltre, ora puoi modificare l’etichetta e il titolo del pulsante per ciascun pulsante.

Ad esempio, puoi avere la seguente configurazione:

Pulsante 1:

  • Tag da aggiungere: Tag A, Tag B, Tag C
  • In categorie: ABC, DEF
  • Chiusura automatica: Sì
  • Chiudi in quanti giorni: 2
  • Etichetta pulsante: Aggiungi A, B, C
  • Titolo pulsante: Aggiungi i tag A, B e C

Pulsante 2:

  • Tag da aggiungere: Tag A, Tag D
  • In categorie: DEF, XYZ
  • Chiusura automatica: No
  • Etichetta pulsante: Aggiungi A, D
  • Titolo pulsante: Aggiungi i tag A e D

Grazie a @tobiaseigen per l’ispirazione per questa funzionalità!

5 Mi Piace

Ciao, sto testando il tuo TC per quel caso d’uso: A list of topics awaiting answers and solutions? - #6 by patrickemin

  • Prima domanda, da quale data viene conteggiata la chiusura automatica?
  • Seconda domanda: sembra che specificare le categorie sia obbligatorio, ma nel mio caso d’uso non voglio specificare le categorie, è possibile?

Inoltre il pulsante è sovradimensionato, sapresti perché?

Grazie.

Viene conteggiato dal momento in cui si preme il pulsante.

Vedrò se posso renderlo opzionale tramite una casella di controllo, o forse lasciandolo vuoto.

Se non ricordo male, è dovuto alla quantità di testo nel pulsante. Meno caratteri vanno bene. Sto usando DButton e non ho idea del perché si verifichi. Vedrò se posso applicare del CSS.

2 Mi Piace

Grazie, penso che lasciarlo vuoto sarebbe meglio.

2 Mi Piace

E già che ci siete :wink: una casella di controllo per nascondere questi pulsanti agli utenti non staff sarebbe utile, indipendentemente dall’impostazione di chiusura dell’argomento.

2 Mi Piace

Sì, stavo già pensando di limitarlo anche per gruppi. Grazie.

3 Mi Piace

Sembra risolto ora :thinking:

Questo dovrebbe essere fatto.

Sto lavorando su un’impostazione per aggiungere gruppi e visualizzare il pulsante se l’utente è in uno qualsiasi dei gruppi. Ho quasi finito; nelle fasi finali di test.

1 Mi Piace

@patrickemin Come da questa PR, ora puoi limitare i pulsanti per gruppi, come da impostazione show_for_groups in ogni pulsante.

1 Mi Piace

Grazie, immagino che lasciare vuoto il campo delle categorie non si applichi a tutte le categorie per impostazione predefinita?

No, l’ho modificato in modo che si applichi a tutte le categorie quando lasciato vuoto.

Ho un errore “git not found” quando uso questo URL per l’installazione: FEATURE: Limit buttons by groups by NateDhaliwal · Pull Request #2 · NateDhaliwal/quick-add-tags · GitHub

1 Mi Piace

Non sono sicuro del perché tu debba installare da una PR? L’ho unita a main.

Mi dispiace, installato con successo, ora funziona

1 Mi Piace

Trovato un bug:

Quando crei un nuovo pulsante di tag, ma lasci i campi vuoti, il mio sito si interrompe:

Un estratto del ciclo della console:

quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52, 49, 44, 56, 2, 3, 10, 11, 12, 13]
quick-add-tag-button.gjs:42 {}
quick-add-tag-button.gjs:26 e {#ts: undefined, #mp: undefined, #mh: undefined, #mm: undefined, #eL: undefined, …}
quick-add-tag-button.gjs:31 user_groups:
quick-add-tag-button.gjs:32 (14) [1, 51, 54, 48, 52

Beh, questo perché non dovrebbe essere vuoto :wink:. Forse dovrei aggiungere un segnaposto se il testo è vuoto.

@nathank Ho sistemato alcune cose. Lo vedi ancora?

2 Mi Piace

Users are dumb, and need some guardrails at times!

Yup, fixed - but now has a very interesting clash with #calendar-and-event:

What it should look like

What I get with a blank quick tag item

quick-add-tag-button.gjs:38 Uncaught (in promise) TypeError: e.show_for_groups is not iterable
    at new k (quick-add-tag-button.gjs:38:41)
    at h.createComponent (index.js:259:12)
    at $.create (index.js:419:28)
    at Object.evaluate (index.js:985:23)
    at Object.evaluate (index.js:103:106)
    at tn.evaluateSyscall (index.js:2873:20)
    at tn.evaluateInner (index.js:2852:64)
    at tn.evaluateOuter (index.js:2849:10)
    at tH.next (index.js:4167:45)
    at tH._execute (index.js:4157:21)
    at tH.execute (index.js:4133:41)
    at tj.handleException (index.js:3450:19)
    at tR.handleException (index.js:3592:52)
    at tF.throw (index.js:3414:16)
    at G.evaluate (index.js:565:42)
    at tF._execute (index.js:3401:34)
    at tF.execute (index.js:3393:17)
    at tU.rerender (index.js:3610:8)
    at tq.render (index-BCp6wOJU.js:4639:55)
    at index-BCp6wOJU.js:4934:16
    at eX (index.js:2414:7)
    at tG._renderRoots (index-BCp6wOJU.js:4914:7)
    at tG._renderRootsTransaction (index-BCp6wOJU.js:4962:12)
    at tG._revalidate (index-BCp6wOJU.js:4995:10)
    at invoke (index.js:262:14)
    at m.flush (index.js:180:11)
    at g.flush (index.js:334:19)
    at q._end (index.js:762:32)
    at q.end (index.js:565:10)
    at q._run (index.js:806:14)
    at q._join (index.js:783:19)
    at q.join (index.js:605:17)
    at Array.<anonymous> (index-BCp6wOJU.js:4728:26)
    at q._trigger (index.js:860:21)
    at q._end (index.js:775:16)
    at index.js:499:12
quick-add-tag-button.gjs:38 Uncaught (in promise) TypeError: e.show_for_groups is not iterable
    at new k (quick-add-tag-button.gjs:38:41)
    at h.createComponent (index.js:259:12)
    at $.create (index.js:419:28)
    at Object.evaluate (index.js:985:23)
    at Object.evaluate (index.js:103:106)
    at tn.evaluateSyscall (index.js:2873:20)
    at tn.evaluateInner (index.js:2852:64)
    at tn.evaluateOuter (index.js:2849:10)
    at tH.next (index.js:4167:45)
    at tH._execute (index.js:4157:21)
    at tH.execute (index.js:4133:41)
    at tj.handleException (index.js:3450:19)
    at tR.handleException (index.js:3592:52)
    at tF.throw (index.js:3414:16)
    at G.evaluate (index.js:565:42)
    at tF._execute (index.js:3401:34)
    at tF.execute (index.js:3393:17)
    at tU.rerender (index.js:3610:8)
    at tq.render (index-BCp6wOJU.js:4639:55)
    at index-BCp6wOJU.js:4934:16
    at eX (index.js:2414:7)
    at tG._renderRoots (index-BCp6wOJU.js:4914:7)
    at tG._renderRootsTransaction (index-BCp6wOJU.js:4962:12)
    at tG._revalidate (index-BCp6wOJU.js:4995:10)
    at invoke (index.js:262:14)
    at m.flush (index.js:180:11)
    at g.flush (index.js:334:19)
    at q._end (index.js:762:32)
    at q.end (index.js:565:10)
    at q._run (index.js:806:14)
    at q._join (index.js:783:19)
    at q.join (index.js:605:17)
    at Array.<anonymous> (index-BCp6wOJU.js:4728:26)
    at q._trigger (index.js:860:21)
    at q._end (index.js:775:16)
    at index.js:499:12
k @ quick-add-tag-button.gjs:38
createComponent @ index.js:259
create @ index.js:419
(anonymous) @ index.js:985
evaluate @ index.js:103
evaluateSyscall @ index.js:2873
evaluateInner @ index.js:2852
evaluateOuter @ index.js:2849
next @ index.js:4167
_execute @ index.js:4157
execute @ index.js:4133
handleException @ index.js:3450
handleException @ index.js:3592
throw @ index.js:3414
evaluate @ index.js:565
_execute @ index.js:3401
execute @ index.js:3393
rerender @ index.js:3610
(anonymous) @ index-BCp6wOJU.js:4639
(anonymous) @ index-BCp6wOJU.js:4934
eX @ index.js:2414
_renderRoots @ index-BCp6wOJU.js:4914
_renderRootsTransaction @ index-BCp6wOJU.js:4962
_revalidate @ index-BCp6wOJU.js:4995
invoke @ index.js:262
flush @ index.js:180
flush @ index.js:334
_end @ index.js:762
end @ index.js:565
_run @ index.js:806
_join @ index.js:783
join @ index.js:605
(anonymous) @ index-BCp6wOJU.js:4728
_trigger @ index.js:860
_end @ index.js:775
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_ensureInstance @ index.js:919
schedule @ index.js:618
(anonymous) @ rsvp.js:9
_ @ rsvp-ziM3qQyS.js:360
m @ rsvp-ziM3qQyS.js:324
g @ rsvp-ziM3qQyS.js:338
(anonymous) @ rsvp-ziM3qQyS.js:440
(anonymous) @ preload-store.js:32
Promise.then
(anonymous) @ preload-store.js:32
(anonymous) @ rsvp-ziM3qQyS.js:435
e @ rsvp-ziM3qQyS.js:451
getAndRemove @ preload-store.js:26
I @ topic.js:40
refresh @ post-stream.js:365
model @ from-params.js:31
deserialize @ route.js:867
getModel @ router-BViwI_oJ.js:314
(anonymous) @ router-BViwI_oJ.js:149
k @ rsvp-ziM3qQyS.js:412
w @ rsvp-ziM3qQyS.js:398
invoke @ index.js:264
flush @ index.js:180
flush @ index.js:334
_end @ index.js:762
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_ensureInstance @ index.js:919
ensureInstance @ index.js:731
scheduleRevalidate @ index-BCp6wOJU.js:3609
dirtyTag @ index.js:229
P @ index.js:287
setter @ index.js:447
l @ cache-fCezwMOy.js:1886
l @ index.js:35
dirtyStorageFor @ map.ts:31
set @ map.ts:107
set @ history-store.js:48
navigateToTopic @ item.gjs:89
event @ item.gjs:158
_ @ transformer.js:253
click @ item.gjs:145
quick-add-tag-button.gjs:38 Uncaught (in promise) TypeError: e.show_for_groups is not iterable
    at new k (quick-add-tag-button.gjs:38:41)
    at h.createComponent (index.js:259:12)
    at $.create (index.js:419:28)
    at Object.evaluate (index.js:985:23)
    at Object.evaluate (index.js:103:106)
    at tn.evaluateSyscall (index.js:2873:20)
    at tn.evaluateInner (index.js:2852:64)
    at tn.evaluateOuter (index.js:2849:10)
    at tH.next (index.js:4167:45)
    at tH._execute (index.js:4157:21)
    at tH.execute (index.js:4133:41)
    at tj.handleException (index.js:3450:19)
    at tR.handleException (index.js:3592:52)
    at tF.throw (index.js:3414:16)
    at G.evaluate (index.js:565:42)
    at tF._execute (index.js:3401:34)
    at tF.execute (index.js:3393:17)
    at tU.rerender (index.js:3610:8)
    at tq.render (index-BCp6wOJU.js:4639:55)
    at index-BCp6wOJU.js:4934:16
    at eX (index.js:2414:7)
    at tG._renderRoots (index-BCp6wOJU.js:4914:7)
    at tG._renderRootsTransaction (index-BCp6wOJU.js:4962:12)
    at tG._revalidate (index-BCp6wOJU.js:4995:10)
    at invoke (index.js:262:14)
    at m.flush (index.js:180:11)
    at g.flush (index.js:334:19)
    at q._end (index.js:762:32)
    at q.end (index.js:565:10)
    at q._run (index.js:806:14)
    at q._join (index.js:783:19)
    at q.join (index.js:605:17)
    at Array.<anonymous> (index-BCp6wOJU.js:4728:26)
    at q._trigger (index.js:860:21)
    at q._end (index.js:775:16)
    at index.js:499:12
k @ quick-add-tag-button.gjs:38
createComponent @ index.js:259
create @ index.js:419
(anonymous) @ index.js:985
evaluate @ index.js:103
evaluateSyscall @ index.js:2873
evaluateInner @ index.js:2852
evaluateOuter @ index.js:2849
next @ index.js:4167
_execute @ index.js:4157
execute @ index.js:4133
handleException @ index.js:3450
handleException @ index.js:3592
throw @ index.js:3414
evaluate @ index.js:565
_execute @ index.js:3401
execute @ index.js:3393
rerender @ index.js:3610
(anonymous) @ index-BCp6wOJU.js:4639
(anonymous) @ index-BCp6wOJU.js:4934
eX @ index.js:2414
_renderRoots @ index-BCp6wOJU.js:4914
_renderRootsTransaction @ index-BCp6wOJU.js:4962
_revalidate @ index-BCp6wOJU.js:4995
invoke @ index.js:262
flush @ index.js:180
flush @ index.js:334
_end @ index.js:762
end @ index.js:565
_run @ index.js:806
_join @ index.js:783
join @ index.js:605
(anonymous) @ index-BCp6wOJU.js:4728
_trigger @ index.js:860
_end @ index.js:775
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_ensureInstance @ index.js:919
schedule @ index.js:618
(anonymous) @ rsvp.js:9
_ @ rsvp-ziM3qQyS.js:360
m @ rsvp-ziM3qQyS.js:324
g @ rsvp-ziM3qQyS.js:338
(anonymous) @ rsvp-ziM3qQyS.js:440
(anonymous) @ preload-store.js:32
Promise.then
(anonymous) @ preload-store.js:32
(anonymous) @ rsvp-ziM3qQyS.js:435
e @ rsvp-ziM3qQyS.js:451
getAndRemove @ preload-store.js:26
I @ topic.js:40
refresh @ post-stream.js:365
model @ from-params.js:31
deserialize @ route.js:867
getModel @ router-BViwI_oJ.js:314
(anonymous) @ router-BViwI_oJ.js:149
k @ rsvp-ziM3qQyS.js:412
w @ rsvp-ziM3qQyS.js:398
invoke @ index.js:264
flush @ index.js:180
flush @ index.js:334
_end @ index.js:762
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_ensureInstance @ index.js:919
ensureInstance @ index.js:731
scheduleRevalidate @ index-BCp6wOJU.js:3609
dirtyTag @ index.js:229
P @ index.js:287
setter @ index.js:447
l @ cache-fCezwMOy.js:1886
l @ index.js:35
dirtyStorageFor @ map.ts:31
set @ map.ts:107
set @ history-store.js:48
navigateToTopic @ item.gjs:89
event @ item.gjs:158
_ @ transformer.js:253
click @ item.gjs:145
1 Mi Piace

Corretto. Non è un conflitto con il plugin menzionato, ma piuttosto il risultato dell’impostazione show_for_groups lasciata vuota. L’ho corretto in questa PR:

3 Mi Piace