-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow unpermitted tags to be added to messages, threads #63
Conversation
@@ -4,7 +4,7 @@ class MessagesController < ApplicationController | |||
def show | |||
authorize @message | |||
|
|||
@message.update(read: true) | |||
@message.update(read: true) if @message.read == false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Toto nech fixnuje mirrec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ano, OK, tak toto revertujem. S Mirom som dohodnuty, spravil si na to Jira task
@@ -0,0 +1,8 @@ | |||
module Common | |||
class AttachedTagLabelComponent < ViewComponent::Base |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uz sa nam tu trosku motaju dva nazvy: Tag, Label a este nejaky attachedtag. Asi to zjednotme na nieco. Ja som za tagy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tym, ze je vnutri button (krizik) na zmazanie vazby, tak toto je specificky komponent pre zobrazenie tagov, ktore su naviazane na nejaky objekt (zatial vlakno, sprava, ale je to genericke). Preto Attached... To by som vzhladom na citatelnost nechal
Ten Label mozem dat teoreticky prec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ono potom sa to skor podoba na nejakypolymorphic komponent a tam je konvencia xx<able>
cize tu by to bolo nieco ako TaggableTagComponent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tak uz len tu sa nezhodujeme. Tych komponentov je tam strasne vela (postupne vznikaju, a asi chcu raz za cas upratat) a vychadza mi, ze musia mat co najdeskriptivnejsie nazvy, najma ak su specializovane, t.j. nevadia mi dlhe nazvy. Pretoze je ine TagComponent tu, a TagComponent vo vybere takych, ktore pridavas, a to je zas iny, ako taky, kde manazujes pristupy pre skupiny. Preto prichadzam s kompromisom DestroyableTagRelationComponent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ano tomu rozumiem preto som to nenavrhol nazvat TagComponent. DestroyableTagRelationComponent
je moc :D
RemovableTagComponent
? Destroy je rails/tech vec, domenovo ten tag davas prec, zmazes, nie "znicis".
No description provided.