🎨 Support manual purge of unreferenced data snapshots in the S3/WebDAV cloud storage https://github.com/siyuan-note/siyuan/issues/10081

This commit is contained in:
Daniel 2024-01-24 17:25:57 +08:00
parent e3c395e228
commit cb6476b165
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
8 changed files with 14 additions and 16 deletions

View file

@ -1841,13 +1841,11 @@ func subscribeRepoEvents() {
eventbus.Subscribe(eventbus.EvtCloudPurgeListRefs, func(context map[string]interface{}) {
util.ContextPushMsg(context, Conf.language(226))
})
eventbus.Subscribe(eventbus.EvtCloudPurgeDownloadIndex, func(context map[string]interface{}, id string) {
msg := fmt.Sprintf(Conf.language(227), id)
util.ContextPushMsg(context, msg)
eventbus.Subscribe(eventbus.EvtCloudPurgeDownloadIndexes, func(context map[string]interface{}) {
util.ContextPushMsg(context, fmt.Sprintf(Conf.language(227)))
})
eventbus.Subscribe(eventbus.EvtCloudPurgeDownloadFiles, func(context map[string]interface{}) {
msg := Conf.language(228)
util.ContextPushMsg(context, msg)
util.ContextPushMsg(context, Conf.language(228))
})
eventbus.Subscribe(eventbus.EvtCloudPurgeRemoveIndexes, func(context map[string]interface{}) {
util.ContextPushMsg(context, Conf.language(229))