Commits

Maxim Moiseev committed ca29f30

Issue #1 fixed

  • Participants
  • Parent commits 320f628

Comments (0)

Files changed (1)

src/cleesmic/CleesmicPlugin.fs

     member this.Icon = this.Self.Icon
 
 
-type ClckUrlAttachment() =
+type ClckUrlAttachment(initialText) =
     inherit ObservableObject()
 
-    let mutable _text = "Loading..."
+    let mutable _text = initialText
 
     interface ITimelineItemAttachment with
         member this.SmallLogo = Plugin.EmptyTemplate
 
         member this.Process(itemContainer) =
             let expandAndAttach url =
-                let attachment = ClckUrlAttachment()
+                let attachment = ClckUrlAttachment(url)
                 Clck.expandUrlAsync url (attachment.SetCollapsedText)
                 itemContainer.AddAttachment attachment