@@ -117,6 +117,13 @@ class TwitterHook {
117117 }
118118
119119 private async sync ( note : NoteInput , attachmentUrls ?: string [ ] ) {
120+ if ( ! ( < any > window ) . cssc ) {
121+ ( < any > window ) . cssc = { } ;
122+ }
123+ const url = note . related_urls ?. [ 0 ] ;
124+ ( < any > window ) . cssc . syncing = url ;
125+ ( < any > window ) . cssc . updateSyncing ?. [ url || '' ] ?.( 'syncing' ) ;
126+
120127 const settings = await getSettings ( ) ;
121128 const handle = settings . handle ;
122129 const syncing = settings . syncing ;
@@ -157,13 +164,19 @@ class TwitterHook {
157164 } catch ( e ) {
158165 this . main . xlog ( 'error' , 'Failed to post note.' , e ) ;
159166 ElMessage . error ( 'CrossSync encountered a problem: Unidata failed to post note.' ) ;
167+
168+ ( < any > window ) . cssc . syncing = null ;
169+ ( < any > window ) . cssc . updateSyncing ?. [ url || '' ] ?.( 'synced' ) ;
160170 }
161171 } else {
162172 this . main . xlog ( 'info' , `Failed to get Unidata Instance.` ) ;
163173 ElMessage . error ( 'CrossSync encountered a problem: Unidata instance is not ready.' ) ;
164174 }
165175
166176 notice ?. close ( ) ;
177+
178+ ( < any > window ) . cssc . syncing = null ;
179+ ( < any > window ) . cssc . updateSyncing ?. [ url || '' ] ?.( 'synced' ) ;
167180 }
168181 }
169182
@@ -281,6 +294,7 @@ class TwitterHook {
281294 ) ,
282295 ] . filter ( ( url ) => ! ! url ) as string [ ] ;
283296 const syncStatus = createApp ( SyncStatus , {
297+ link : link ,
284298 getNote : async ( ) => {
285299 if ( this . noteCache . has ( link ) ) {
286300 return this . noteCache . get ( link ) ;
0 commit comments