List cleanup on remove (#1069)
* 💄 Hide Add to List option on own profile * ✨ Remove Lists tab when last list is removed * ✨ Add listener to list delete on profile screen * ✨ Only show save changes in list modal when changes are made
This commit is contained in:
parent
38d78e16bf
commit
eec300d772
6 changed files with 60 additions and 12 deletions
|
|
@ -188,6 +188,14 @@ export class RootStoreModel {
|
|||
DeviceEventEmitter.emit('post-deleted', uri)
|
||||
}
|
||||
|
||||
// a list was deleted by the local user
|
||||
onListDeleted(handler: (uri: string) => void): EmitterSubscription {
|
||||
return DeviceEventEmitter.addListener('list-deleted', handler)
|
||||
}
|
||||
emitListDeleted(uri: string) {
|
||||
DeviceEventEmitter.emit('list-deleted', uri)
|
||||
}
|
||||
|
||||
// the session has started and been fully hydrated
|
||||
onSessionLoaded(handler: () => void): EmitterSubscription {
|
||||
return DeviceEventEmitter.addListener('session-loaded', handler)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue